backlight: ktd253-backlight: 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-10-tzimmermann@suse.de Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
cebc25971f
commit
def5831f09
@ -7,7 +7,6 @@
|
|||||||
#include <linux/backlight.h>
|
#include <linux/backlight.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/fb.h>
|
|
||||||
#include <linux/gpio/consumer.h>
|
#include <linux/gpio/consumer.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
@ -190,10 +189,10 @@ static int ktd253_backlight_probe(struct platform_device *pdev)
|
|||||||
/* When we just enable the GPIO line we set max brightness */
|
/* When we just enable the GPIO line we set max brightness */
|
||||||
if (brightness) {
|
if (brightness) {
|
||||||
bl->props.brightness = brightness;
|
bl->props.brightness = brightness;
|
||||||
bl->props.power = FB_BLANK_UNBLANK;
|
bl->props.power = BACKLIGHT_POWER_ON;
|
||||||
} else {
|
} else {
|
||||||
bl->props.brightness = 0;
|
bl->props.brightness = 0;
|
||||||
bl->props.power = FB_BLANK_POWERDOWN;
|
bl->props.power = BACKLIGHT_POWER_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
ktd253->bl = bl;
|
ktd253->bl = bl;
|
||||||
|
Loading…
Reference in New Issue
Block a user