1. 16 Mar, 2010 2 commits
    • Márton Németh's avatar
      leds: make PCI device id constant · 5e89a348
      Márton Németh authored
      The id_table field of the struct pci_driver is constant in <linux/pci.h>
      so it is worth to make pci_device_id also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: default avatarMárton Németh <nm127@freemail.hu>
      Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
      5e89a348
    • Daniel Mack's avatar
      leds: ALIX2: Add dependency to !GPIO_CS5335 · 93603402
      Daniel Mack authored
      The ALIX2 LED driver and the CS5535 GPIO drivers share the same I/O
      range which causes a conflict if they're both enabled. Fix this for now
      by adding Kconfig dependencies. While at it, also drop the EXPERIMENTAL
      flag, as the code has been around for awhile already.
      
      Note that this is a hack. At some point, a real platform support for
      this board should be added which handles the LEDs via the leds-gpio
      driver.
      Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
      Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
      93603402
  2. 15 Mar, 2010 21 commits
  3. 14 Mar, 2010 17 commits