aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 20:25:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 20:25:10 -0400
commit43c40df2c7fedce640a6c39fcdf58764f6bbac5c (patch)
treebb55c6ad7db5d91f6066d2c4e36d270522ff27d0 /include/linux
parent7385d6fd88dd7981cdef8aa91e46570e5ba068c8 (diff)
parente661c8978e4833d4148d08b405a2f3175d6f97d9 (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull LED updates from Bryan Wu: "This cycle we got: - a fix of attribute-creation race for the whole leds subsystem - new drivers (HID:GT683R, leds-ipaq-micro) - other fixing and clean up" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (23 commits) leds: ipaq-micro: fix sparse non static symbol warning leds: add driver for the iPAQ micro Documentation: dts: tcs6507: Fix wrong statement about #gpio-cells leds: convert blink timer to workqueue leds:pca963x: Update for PCA9635 and correct statement about MODE2 OUTDRV default leds:pca963x: Always initialize MODE2 register leds:pca963x: Add support for PCA9635 LED driver chip HID: gt683r: move mode attribute to led-class devices HID: gt683r: fix race condition HID: add support for MSI GT683R led panels leds: lp55xx-common: fix attribute-creation race leds: lp55xx-common: fix sysfs entry leak input: lm8323: fix attribute-creation race leds: wm831x-status: fix attribute-creation race leds: ss4200: fix attribute-creation race leds: ns2: fix attribute-creation race leds: netxbig: fix attribute-creation race leds: max8997: fix attribute-creation race leds: lm3642: fix attribute-creation race leds: lm355x: fix attribute-creation race ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/leds.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 0287ab296689..6a599dce7f9d 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -15,7 +15,6 @@
15#include <linux/list.h> 15#include <linux/list.h>
16#include <linux/spinlock.h> 16#include <linux/spinlock.h>
17#include <linux/rwsem.h> 17#include <linux/rwsem.h>
18#include <linux/timer.h>
19#include <linux/workqueue.h> 18#include <linux/workqueue.h>
20 19
21struct device; 20struct device;
@@ -63,11 +62,13 @@ struct led_classdev {
63 unsigned long *delay_off); 62 unsigned long *delay_off);
64 63
65 struct device *dev; 64 struct device *dev;
65 const struct attribute_group **groups;
66
66 struct list_head node; /* LED Device list */ 67 struct list_head node; /* LED Device list */
67 const char *default_trigger; /* Trigger to use */ 68 const char *default_trigger; /* Trigger to use */
68 69
69 unsigned long blink_delay_on, blink_delay_off; 70 unsigned long blink_delay_on, blink_delay_off;
70 struct timer_list blink_timer; 71 struct delayed_work blink_work;
71 int blink_brightness; 72 int blink_brightness;
72 73
73 struct work_struct set_brightness_work; 74 struct work_struct set_brightness_work;