1. 20 10月, 2008 1 次提交
  2. 17 10月, 2008 1 次提交
  3. 04 10月, 2008 2 次提交
  4. 24 9月, 2008 2 次提交
  5. 01 9月, 2008 1 次提交
  6. 07 8月, 2008 3 次提交
  7. 23 7月, 2008 5 次提交
  8. 21 5月, 2008 1 次提交
    • G
      LEDS: fix race in device_create · 0b00fc58
      Greg Kroah-Hartman 提交于
      There is a race from when a device is created with device_create() and
      then the drvdata is set with a call to dev_set_drvdata() in which a
      sysfs file could be open, yet the drvdata will be NULL, causing all
      sorts of bad things to happen.
      
      This patch fixes the problem by using the new function,
      device_create_drvdata().
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0b00fc58
  9. 29 4月, 2008 1 次提交
  10. 25 4月, 2008 7 次提交
  11. 23 4月, 2008 1 次提交
  12. 20 4月, 2008 1 次提交
    • R
      PM: Remove destroy_suspended_device() · b844eba2
      Rafael J. Wysocki 提交于
      After 2.6.24 there was a plan to make the PM core acquire all device
      semaphores during a suspend/hibernation to protect itself from
      concurrent operations involving device objects.  That proved to be
      too heavy-handed and we found a better way to achieve the goal, but
      before it happened, we had introduced the functions
      device_pm_schedule_removal() and destroy_suspended_device() to allow
      drivers to "safely" destroy a suspended device and we had adapted some
      drivers to use them.  Now that these functions are no longer necessary,
      it seems reasonable to remove them and modify their users to use the
      normal device unregistration instead.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b844eba2
  13. 19 4月, 2008 2 次提交
  14. 16 4月, 2008 1 次提交
  15. 01 4月, 2008 2 次提交
  16. 09 2月, 2008 1 次提交
    • D
      PWM LED driver · de5c9ede
      David Brownell 提交于
      This is a LED driver using the PWM on newer SOCs from Atmel; brightness is
      controlled by changing the PWM duty cycle.  So for example if you've set up
      two leds labeled "pwm0" and "pwm1":
      
      	echo 0 > /sys/class/leds/pwm2/brightness	# off (0%)
      	echo 80 > /sys/class/leds/pwm2/brightness
      	echo 255 > /sys/class/leds/pwm2/brightness	# on (100%)
      
      Note that "brightness" here isn't linear; maybe that should change.  Going
      from 4 to 8 probably doubles perceived brightness, while 244 to 248 is
      imperceptible.
      
      This is mostly intended to be a simple example of PWM, although it's
      realistic since LCD backlights are often driven with PWM to conserve
      battery power (and offer brightness options).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Andrew Victor <linux@maxim.org.za>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      de5c9ede
  17. 07 2月, 2008 8 次提交