mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
backlight: aw99703: Remove unused variable
drivers/backlight/aw99703/leds_aw99703.c:705:27: error: variable 'bl_dev' set but not used [-Werror,-Wunused-but-set-variable] 705 | struct backlight_device *bl_dev; Change-Id: Ic54933366a36805939160423188595c81e2711e6 Signed-off-by: Sevenrock <sevenrock@hotmail.de>
This commit is contained in:
parent
9860dc91ec
commit
52575eb931
1 changed files with 1 additions and 2 deletions
|
|
@ -702,7 +702,6 @@ static int aw99703_probe(struct i2c_client *client,
|
|||
{
|
||||
struct aw99703_data *drvdata;
|
||||
#ifdef KERNEL_ABOVE_4_14
|
||||
struct backlight_device *bl_dev;
|
||||
struct backlight_properties props;
|
||||
#endif
|
||||
int err = 0;
|
||||
|
|
@ -761,7 +760,7 @@ static int aw99703_probe(struct i2c_client *client,
|
|||
props.type = BACKLIGHT_PLATFORM;
|
||||
props.brightness = MAX_BRIGHTNESS;
|
||||
props.max_brightness = MAX_BRIGHTNESS;
|
||||
bl_dev = backlight_device_register(AW99703_NAME, &client->dev,
|
||||
backlight_device_register(AW99703_NAME, &client->dev,
|
||||
drvdata, &aw99703_bl_ops, &props);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue