File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
drivers/video/fbdev/omap2/omapfb/displays Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -356,11 +356,7 @@ static int dsicm_bl_update_status(struct backlight_device *dev)
356
356
357
357
static int dsicm_bl_get_intensity (struct backlight_device * dev )
358
358
{
359
- if (dev -> props .fb_blank == FB_BLANK_UNBLANK &&
360
- dev -> props .power == FB_BLANK_UNBLANK )
361
- return dev -> props .brightness ;
362
-
363
- return 0 ;
359
+ return backlight_get_brightness (dev );
364
360
}
365
361
366
362
static const struct backlight_ops dsicm_bl_ops = {
Original file line number Diff line number Diff line change @@ -340,11 +340,7 @@ static int acx565akm_bl_update_status(struct backlight_device *dev)
340
340
341
341
dev_dbg (& ddata -> spi -> dev , "%s\n" , __func__ );
342
342
343
- if (dev -> props .fb_blank == FB_BLANK_UNBLANK &&
344
- dev -> props .power == FB_BLANK_UNBLANK )
345
- level = dev -> props .brightness ;
346
- else
347
- level = 0 ;
343
+ level = backlight_get_brightness (dev );
348
344
349
345
if (ddata -> has_bc )
350
346
acx565akm_set_brightness (ddata , level );
@@ -363,8 +359,7 @@ static int acx565akm_bl_get_intensity(struct backlight_device *dev)
363
359
if (!ddata -> has_bc )
364
360
return - ENODEV ;
365
361
366
- if (dev -> props .fb_blank == FB_BLANK_UNBLANK &&
367
- dev -> props .power == FB_BLANK_UNBLANK ) {
362
+ if (!backlight_is_blank (dev )) {
368
363
if (ddata -> has_bc )
369
364
return acx565akm_get_actual_brightness (ddata );
370
365
else
You can’t perform that action at this time.
0 commit comments