diff options
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/backlight.c | 2 | ||||
-rw-r--r-- | drivers/video/backlight/lcd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index 27597c576eff..f439a588394a 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c | |||
@@ -142,7 +142,7 @@ static struct class backlight_class = { | |||
142 | .store = _store, \ | 142 | .store = _store, \ |
143 | } | 143 | } |
144 | 144 | ||
145 | static struct class_device_attribute bl_class_device_attributes[] = { | 145 | static const struct class_device_attribute bl_class_device_attributes[] = { |
146 | DECLARE_ATTR(power, 0644, backlight_show_power, backlight_store_power), | 146 | DECLARE_ATTR(power, 0644, backlight_show_power, backlight_store_power), |
147 | DECLARE_ATTR(brightness, 0644, backlight_show_brightness, | 147 | DECLARE_ATTR(brightness, 0644, backlight_show_brightness, |
148 | backlight_store_brightness), | 148 | backlight_store_brightness), |
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c index bc8ab005a3fb..58c37d489107 100644 --- a/drivers/video/backlight/lcd.c +++ b/drivers/video/backlight/lcd.c | |||
@@ -121,7 +121,7 @@ static struct class lcd_class = { | |||
121 | .store = _store, \ | 121 | .store = _store, \ |
122 | } | 122 | } |
123 | 123 | ||
124 | static struct class_device_attribute lcd_class_device_attributes[] = { | 124 | static const struct class_device_attribute lcd_class_device_attributes[] = { |
125 | DECLARE_ATTR(power, 0644, lcd_show_power, lcd_store_power), | 125 | DECLARE_ATTR(power, 0644, lcd_show_power, lcd_store_power), |
126 | DECLARE_ATTR(contrast, 0644, lcd_show_contrast, lcd_store_contrast), | 126 | DECLARE_ATTR(contrast, 0644, lcd_show_contrast, lcd_store_contrast), |
127 | DECLARE_ATTR(max_contrast, 0444, lcd_show_max_contrast, NULL), | 127 | DECLARE_ATTR(max_contrast, 0444, lcd_show_max_contrast, NULL), |