hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/video/backlight/tps65217_bl.c
....@@ -77,15 +77,7 @@
7777 {
7878 struct tps65217_bl *tps65217_bl = bl_get_data(bl);
7979 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);
8981
9082 if (brightness > 0) {
9183 rc = tps65217_reg_write(tps65217_bl->tps,