On Fri, Jul 25, 2025 at 08:04:16PM -0400, chalianis1@gmail.com wrote:
From: Chali Anis chalianis1@gmail.com
Support the of backlight from device tree and keep compatibility for the legacy gpio backlight.
Cc: stable@vger.kernel.org Signed-off-by: Chali Anis chalianis1@gmail.com
drivers/staging/fbtft/fbtft-core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index da9c64152a60..5f0220dbe397 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -170,6 +170,18 @@ void fbtft_register_backlight(struct fbtft_par *par) struct backlight_device *bd; struct backlight_properties bl_props = { 0, };
- bd = devm_of_find_backlight(par->info->device);
- if (IS_ERR(bd)) {
dev_warn(par->info->device,
"cannot find of backlight device (%ld), trying legacy\n",
PTR_ERR(bd));
So now you are going to get a warning message for a system that previously did not at all? That's not very nice to those users :(