aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/led-class-flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/led-class-flash.h')
-rw-r--r--include/linux/led-class-flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/led-class-flash.h b/include/linux/led-class-flash.h
index 21ec91e13c47..e97966d1fb8d 100644
--- a/include/linux/led-class-flash.h
+++ b/include/linux/led-class-flash.h
@@ -32,7 +32,7 @@ struct led_classdev_flash;
32#define LED_FAULT_LED_OVER_TEMPERATURE (1 << 8) 32#define LED_FAULT_LED_OVER_TEMPERATURE (1 << 8)
33#define LED_NUM_FLASH_FAULTS 9 33#define LED_NUM_FLASH_FAULTS 9
34 34
35#define LED_FLASH_MAX_SYSFS_GROUPS 7 35#define LED_FLASH_SYSFS_GROUPS_SIZE 5
36 36
37struct led_flash_ops { 37struct led_flash_ops {
38 /* set flash brightness */ 38 /* set flash brightness */
@@ -80,7 +80,7 @@ struct led_classdev_flash {
80 struct led_flash_setting timeout; 80 struct led_flash_setting timeout;
81 81
82 /* LED Flash class sysfs groups */ 82 /* LED Flash class sysfs groups */
83 const struct attribute_group *sysfs_groups[LED_FLASH_MAX_SYSFS_GROUPS]; 83 const struct attribute_group *sysfs_groups[LED_FLASH_SYSFS_GROUPS_SIZE];
84}; 84};
85 85
86static inline struct led_classdev_flash *lcdev_to_flcdev( 86static inline struct led_classdev_flash *lcdev_to_flcdev(