kernel/drivers/video/backlight/tps65217_bl.c
.. .. @@ -77,15 +77,7 @@ 77 77 { 78 78 struct tps65217_bl *tps65217_bl = bl_get_data(bl); 79 79 int rc; 80 - int brightness = bl->props.brightness;81 -82 - if (bl->props.state & BL_CORE_SUSPENDED)83 - brightness = 0;84 -85 - if ((bl->props.power != FB_BLANK_UNBLANK) ||86 - (bl->props.fb_blank != FB_BLANK_UNBLANK))87 - /* framebuffer in low power mode or blanking active */88 - brightness = 0;80 + int brightness = backlight_get_brightness(bl);89 81 90 82 if (brightness > 0) { 91 83 rc = tps65217_reg_write(tps65217_bl->tps,