Skip to content

Commit c2d9c49

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: mp3309c: Use backlight power constants
Replace FB_BLANK_ constants with their counterparts from the backlight subsystem. The values are identical, so there's no change in functionality. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 761c839 commit c2d9c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/mp3309c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int mp3309c_probe(struct i2c_client *client)
358358
props.max_brightness = pdata->max_brightness;
359359
props.scale = BACKLIGHT_SCALE_LINEAR;
360360
props.type = BACKLIGHT_RAW;
361-
props.power = FB_BLANK_UNBLANK;
361+
props.power = BACKLIGHT_POWER_ON;
362362
chip->bl = devm_backlight_device_register(dev, "mp3309c", dev, chip,
363363
&mp3309c_bl_ops, &props);
364364
if (IS_ERR(chip->bl))
@@ -388,7 +388,7 @@ static void mp3309c_remove(struct i2c_client *client)
388388
struct mp3309c_chip *chip = i2c_get_clientdata(client);
389389
struct backlight_device *bl = chip->bl;
390390

391-
bl->props.power = FB_BLANK_POWERDOWN;
391+
bl->props.power = BACKLIGHT_POWER_OFF;
392392
bl->props.brightness = 0;
393393
backlight_update_status(chip->bl);
394394
}

0 commit comments

Comments
 (0)