1. 04 10月, 2016 1 次提交
  2. 29 6月, 2016 1 次提交
  3. 09 5月, 2016 1 次提交
  4. 19 4月, 2016 1 次提交
  5. 14 1月, 2016 1 次提交
  6. 19 11月, 2015 1 次提交
    • L
      gpio: change member .dev to .parent · 58383c78
      Linus Walleij 提交于
      The name .dev in a struct is normally reserved for a struct device
      that is let us say a superclass to the thing described by the struct.
      struct gpio_chip stands out by confusingly using a struct device *dev
      to point to the parent device (such as a platform_device) that
      represents the hardware. As we want to give gpio_chip:s real devices,
      this is not working. We need to rename this member to parent.
      
      This was done by two coccinelle scripts, I guess it is possible to
      combine them into one, but I don't know such stuff. They look like
      this:
      
      @@
      struct gpio_chip *var;
      @@
      -var->dev
      +var->parent
      
      and:
      
      @@
      struct gpio_chip var;
      @@
      -var.dev
      +var.parent
      
      and:
      
      @@
      struct bgpio_chip *var;
      @@
      -var->gc.dev
      +var->gc.parent
      
      Plus a few instances of bgpio that I couldn't figure out how
      to teach Coccinelle to rewrite.
      
      This patch hits all over the place, but I *strongly* prefer this
      solution to any piecemal approaches that just exercise patch
      mechanics all over the place. It mainly hits drivers/gpio and
      drivers/pinctrl which is my own backyard anyway.
      
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Rafał Miłecki <zajec5@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
      Cc: Alek Du <alek.du@intel.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.com>
      Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NJiri Kosina <jkosina@suse.cz>
      Acked-by: NHans-Christian Egtvedt <egtvedt@samfundet.no>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      58383c78
  7. 22 7月, 2014 1 次提交
  8. 31 7月, 2013 1 次提交
  9. 09 1月, 2012 1 次提交
  10. 01 11月, 2011 1 次提交
  11. 17 9月, 2009 1 次提交
  12. 29 6月, 2009 1 次提交
  13. 11 1月, 2009 1 次提交
  14. 04 1月, 2009 1 次提交
    • D
      mfd: dm355evm msp430 driver · 0931a4c6
      David Brownell 提交于
      Basic MFD framework for the MSP430 microcontroller firmware used
      on the dm355evm board:
      
       - Provides an interface for other drivers: register read/write
         utilities, and register declarations.
      
       - Directly exports:
           * Many signals through the GPIO framework
               + LEDs
               + SW6 through gpio sysfs
      	 + NTSC/nPAL jumper through gpio sysfs
      	 + ... more could be added later, e.g. MMC signals
           * Child devices:
      	+ LEDs, via leds-gpio child (and default triggers)
      	+ RTC, via rtc-dm355evm child device
      	+ Buttons and IR control, via dm355evm_keys
      
       - Supports power-off system call.  Use the reset button to power
         the board back up; the power supply LED will be on, but the
         MSP430 waits to re-activate the regulators.
      
       - On probe() this:
           * Announces firmware revision
           * Turns off the banked LEDs
           * Exports the resources noted above
           * Hooks the power-off support
           * Muxes tvp5146 -or- imager for video input
      
      Unless the new tvp514x driver (tracked for mainline) is configured,
      this assumes that some custom imager driver handles video-in.
      
      This completely ignores the registers reporting the output voltages
      on the various power supplies.  Someone could add a hwmon interface
      if that seems useful.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NSamuel Ortiz <sameo@openedhand.com>
      0931a4c6