Commit 7eb99a39 authored by Lee Jones's avatar Lee Jones

video: backlight: cr_bllcd: Remove unused variable 'intensity'

Fixes the following kernel build warning:

 drivers/video/backlight/cr_bllcd.c: In function ‘cr_backlight_set_intensity’:
 drivers/video/backlight/cr_bllcd.c:62:6: warning: unused variable ‘intensity’ [-Wunused-variable]
 62 | int intensity = bd->props.brightness;
 | ^~~~~~~~~

Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Fixes: 24d34617 ("backlight: cr_bllcd: Introduce gpio-backlight semantics")
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent b6539a11
...@@ -59,7 +59,6 @@ struct cr_panel { ...@@ -59,7 +59,6 @@ struct cr_panel {
static int cr_backlight_set_intensity(struct backlight_device *bd) static int cr_backlight_set_intensity(struct backlight_device *bd)
{ {
int intensity = bd->props.brightness;
u32 addr = gpio_bar + CRVML_PANEL_PORT; u32 addr = gpio_bar + CRVML_PANEL_PORT;
u32 cur = inl(addr); u32 cur = inl(addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment