Skip to content

Commit 12616b2

Browse files
committed
driver: Don't initialize brightness in get_brightness()
https://lore.kernel.org/dri-devel/[email protected]/ > No need to read the brightness here. It will be set if > mipi_dsi_dcs_get_display_brightness() succeeds.
1 parent d3224ef commit 12616b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def generate_backlight(p: Panel, options: Options) -> str:
295295
static int {p.short_id}_bl_get_brightness(struct backlight_device *bl)
296296
{{
297297
struct mipi_dsi_device *dsi = bl_get_data(bl);
298-
u16 brightness = bl->props.brightness;
298+
u16 brightness;
299299
int ret;
300300
301301
dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;

0 commit comments

Comments
 (0)