|
@@ -95,7 +95,7 @@ struct lp55xx_reg {
|
|
* @enable : Chip specific enable command
|
|
* @enable : Chip specific enable command
|
|
* @max_channel : Maximum number of channels
|
|
* @max_channel : Maximum number of channels
|
|
* @post_init_device : Chip specific initialization code
|
|
* @post_init_device : Chip specific initialization code
|
|
- * @brightness_work_fn : Brightness work function
|
|
|
|
|
|
+ * @brightness_fn : Brightness function
|
|
* @set_led_current : LED current set function
|
|
* @set_led_current : LED current set function
|
|
* @firmware_cb : Call function when the firmware is loaded
|
|
* @firmware_cb : Call function when the firmware is loaded
|
|
* @run_engine : Run internal engine for pattern
|
|
* @run_engine : Run internal engine for pattern
|
|
@@ -110,7 +110,7 @@ struct lp55xx_device_config {
|
|
int (*post_init_device) (struct lp55xx_chip *chip);
|
|
int (*post_init_device) (struct lp55xx_chip *chip);
|
|
|
|
|
|
/* access brightness register */
|
|
/* access brightness register */
|
|
- void (*brightness_work_fn)(struct work_struct *work);
|
|
|
|
|
|
+ int (*brightness_fn)(struct lp55xx_led *led);
|
|
|
|
|
|
/* current setting function */
|
|
/* current setting function */
|
|
void (*set_led_current) (struct lp55xx_led *led, u8 led_current);
|
|
void (*set_led_current) (struct lp55xx_led *led, u8 led_current);
|
|
@@ -164,7 +164,6 @@ struct lp55xx_chip {
|
|
* @cdev : LED class device
|
|
* @cdev : LED class device
|
|
* @led_current : Current setting at each led channel
|
|
* @led_current : Current setting at each led channel
|
|
* @max_current : Maximun current at each led channel
|
|
* @max_current : Maximun current at each led channel
|
|
- * @brightness_work : Workqueue for brightness control
|
|
|
|
* @brightness : Brightness value
|
|
* @brightness : Brightness value
|
|
* @chip : The lp55xx chip data
|
|
* @chip : The lp55xx chip data
|
|
*/
|
|
*/
|
|
@@ -173,7 +172,6 @@ struct lp55xx_led {
|
|
struct led_classdev cdev;
|
|
struct led_classdev cdev;
|
|
u8 led_current;
|
|
u8 led_current;
|
|
u8 max_current;
|
|
u8 max_current;
|
|
- struct work_struct brightness_work;
|
|
|
|
u8 brightness;
|
|
u8 brightness;
|
|
struct lp55xx_chip *chip;
|
|
struct lp55xx_chip *chip;
|
|
};
|
|
};
|