Commit ce27a76a authored by Thomas Zimmermann's avatar Thomas Zimmermann
Browse files

fbdev: omapfb: 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 or semantics.

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Helge Deller <deller@gmx.de>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-7-tzimmermann@suse.de
parent d408dcfa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1215,7 +1215,7 @@ static int dsicm_probe(struct platform_device *pdev)

		ddata->bldev = bldev;

		bldev->props.power = FB_BLANK_UNBLANK;
		bldev->props.power = BACKLIGHT_POWER_ON;
		bldev->props.brightness = 255;

		dsicm_bl_update_status(bldev);
@@ -1253,7 +1253,7 @@ static void dsicm_remove(struct platform_device *pdev)

	bldev = ddata->bldev;
	if (bldev != NULL) {
		bldev->props.power = FB_BLANK_POWERDOWN;
		bldev->props.power = BACKLIGHT_POWER_OFF;
		dsicm_bl_update_status(bldev);
		backlight_device_unregister(bldev);
	}
+1 −1
Original line number Diff line number Diff line
@@ -754,7 +754,7 @@ static int acx565akm_probe(struct spi_device *spi)
	}

	memset(&props, 0, sizeof(props));
	props.power = FB_BLANK_UNBLANK;
	props.power = BACKLIGHT_POWER_ON;
	props.type = BACKLIGHT_RAW;

	bldev = backlight_device_register("acx565akm", &ddata->spi->dev,