aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-lp55xx-common.h
diff options
context:
space:
mode:
authorMilo(Woogyom) Kim <milo.kim@ti.com>2013-02-05 05:20:01 -0500
committerBryan Wu <cooloney@gmail.com>2013-02-06 18:59:29 -0500
commit240085e255cd2818aff2ccde3066b7db1f29076a (patch)
tree1b5356694924c111c7f96d1b1bf806789a92cf42 /drivers/leds/leds-lp55xx-common.h
parentdb6eaf8388a413a5ee1b4547ce78506b9c6456b0 (diff)
leds-lp55xx: support device specific attributes
To support device specific attributes, new common driver function is added. Eventually those are created on registering the sysfs with common dev attrs. Furthermore, this patch makes adding device attributes simple in each driver. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-lp55xx-common.h')
-rw-r--r--drivers/leds/leds-lp55xx-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/leds/leds-lp55xx-common.h b/drivers/leds/leds-lp55xx-common.h
index 8473abf9830c..64eb78da1c4b 100644
--- a/drivers/leds/leds-lp55xx-common.h
+++ b/drivers/leds/leds-lp55xx-common.h
@@ -45,6 +45,7 @@ struct lp55xx_reg {
45 * @set_led_current : LED current set function 45 * @set_led_current : LED current set function
46 * @firmware_cb : Call function when the firmware is loaded 46 * @firmware_cb : Call function when the firmware is loaded
47 * @run_engine : Run internal engine for pattern 47 * @run_engine : Run internal engine for pattern
48 * @dev_attr_group : Device specific attributes
48 */ 49 */
49struct lp55xx_device_config { 50struct lp55xx_device_config {
50 const struct lp55xx_reg reset; 51 const struct lp55xx_reg reset;
@@ -65,6 +66,9 @@ struct lp55xx_device_config {
65 66
66 /* used for running firmware LED patterns */ 67 /* used for running firmware LED patterns */
67 void (*run_engine) (struct lp55xx_chip *chip, bool start); 68 void (*run_engine) (struct lp55xx_chip *chip, bool start);
69
70 /* additional device specific attributes */
71 const struct attribute_group *dev_attr_group;
68}; 72};
69 73
70/* 74/*