[PATCH 2/9] drivers: video: simple_panel: make simple panel independent of backlight
Tom Rini
trini at konsulko.com
Fri Jan 13 15:43:15 CET 2023
On Fri, Jan 13, 2023 at 01:59:20PM +0530, Nikhil M Jain wrote:
> This patch updates the necessary Kconfigs to make simple panel
> driver independent of backlight driver and compiling backlight
> related code in simple-panel driver conditionally to when user
> has set CONFIG_BACKLIGHT.
>
> Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
> ---
> drivers/video/Kconfig | 3 +--
> drivers/video/simple_panel.c | 20 +++++++++++++-------
> 2 files changed, 14 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
> index c841b99bb3..5030586d9f 100644
> --- a/drivers/video/Kconfig
> +++ b/drivers/video/Kconfig
> @@ -28,7 +28,6 @@ config VIDEO_LOGO
>
> config BACKLIGHT
> bool "Enable panel backlight uclass support"
> - default y
> help
> This provides backlight uclass driver that enables basic panel
> backlight support.
Have you made sure this didn't disable / remove code on other platforms?
[snip]
> @@ -97,8 +101,10 @@ static int simple_panel_probe(struct udevice *dev)
> }
>
> static const struct panel_ops simple_panel_ops = {
> - .enable_backlight = simple_panel_enable_backlight,
> - .set_backlight = simple_panel_set_backlight,
> +#ifdef CONFIG_BACKLIGHT
> + .enable_backlight = simple_panel_enable_backlight,
> + .set_backlight = simple_panel_set_backlight,
> +#endif
> };
This shouldn't get indented more.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230113/406f8230/attachment.sig>
More information about the U-Boot
mailing list