Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-13-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
c2d9c493 761c8391

+2 -2
+2 -2
drivers/video/backlight/mp3309c.c
··· 358 358 props.max_brightness = pdata->max_brightness; 359 359 props.scale = BACKLIGHT_SCALE_LINEAR; 360 360 props.type = BACKLIGHT_RAW; 361 - props.power = FB_BLANK_UNBLANK; 361 + props.power = BACKLIGHT_POWER_ON; 362 362 chip->bl = devm_backlight_device_register(dev, "mp3309c", dev, chip, 363 363 &mp3309c_bl_ops, &props); 364 364 if (IS_ERR(chip->bl)) ··· 388 388 struct mp3309c_chip *chip = i2c_get_clientdata(client); 389 389 struct backlight_device *bl = chip->bl; 390 390 391 - bl->props.power = FB_BLANK_POWERDOWN; 391 + bl->props.power = BACKLIGHT_POWER_OFF; 392 392 bl->props.brightness = 0; 393 393 backlight_update_status(chip->bl); 394 394 }