leds: ns2: Remove work queue
[deliverable/linux.git] / drivers / leds / leds-lp55xx-common.h
index c7f1e6155001f6eeb76818f6a4dcf3904624c7e8..abf1fb5da37d5d34db57f8f5d82a347257b26f3a 100644 (file)
@@ -95,7 +95,7 @@ struct lp55xx_reg {
  * @enable             : Chip specific enable command
  * @max_channel        : Maximum number of channels
  * @post_init_device   : Chip specific initialization code
- * @brightness_work_fn : Brightness work function
+ * @brightness_fn      : Brightness function
  * @set_led_current    : LED current set function
  * @firmware_cb        : Call function when the firmware is loaded
  * @run_engine         : Run internal engine for pattern
@@ -110,7 +110,7 @@ struct lp55xx_device_config {
        int (*post_init_device) (struct lp55xx_chip *chip);
 
        /* access brightness register */
-       void (*brightness_work_fn)(struct work_struct *work);
+       int (*brightness_fn)(struct lp55xx_led *led);
 
        /* current setting function */
        void (*set_led_current) (struct lp55xx_led *led, u8 led_current);
@@ -164,7 +164,6 @@ struct lp55xx_chip {
  * @cdev            : LED class device
  * @led_current     : Current setting at each led channel
  * @max_current     : Maximun current at each led channel
- * @brightness_work : Workqueue for brightness control
  * @brightness      : Brightness value
  * @chip            : The lp55xx chip data
  */
@@ -173,7 +172,6 @@ struct lp55xx_led {
        struct led_classdev cdev;
        u8 led_current;
        u8 max_current;
-       struct work_struct brightness_work;
        u8 brightness;
        struct lp55xx_chip *chip;
 };
This page took 0.041191 seconds and 5 git commands to generate.