From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18E54EEB572 for ; Sat, 9 Sep 2023 12:56:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 786AD10E28B; Sat, 9 Sep 2023 12:56:52 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE93F10E284 for ; Sat, 9 Sep 2023 12:56:49 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8CF74B80010; Sat, 9 Sep 2023 12:56:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF657C433C8; Sat, 9 Sep 2023 12:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694264207; bh=IRzyFj2EHas7thgToHWDMbEXzeRoJ3Jg+lq39BGx6vA=; h=Subject:To:Cc:From:Date:From; b=dWdlARvLZ8Hz8VYw5HpFYxr7KBENPDcwlyCT3QB9HmeZ6meSuHCNHRMSOOfTfaLvc /jIUTM9/OsnXURvBwwOefClplfgjJAQgca36mVcoGqtHuRk9suFeqNqtVAf3sQOFu+ wmUVbJhwf6j3zAuSDQpTUGqQ9qszWjEG1en7JLpc= Subject: Patch "backlight/bd6107: Compare against struct fb_info.device" has been added to the 5.10-stable tree To: daniel.thompson@linaro.org, dri-devel@lists.freedesktop.org, gregkh@linuxfoundation.org, javierm@redhat.com, jingoohan1@gmail.com, laurent.pinchart+renesas@ideasonboard.com, lee@kernel.org, sam@ravnborg.org, tzimmermann@suse.de From: Date: Sat, 09 Sep 2023 13:56:22 +0100 Message-ID: <2023090922-parlor-bargraph-b43f@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a note to let you know that I've just added the patch titled backlight/bd6107: Compare against struct fb_info.device to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: backlight-bd6107-compare-against-struct-fb_info.device.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 992bdddaabfba19bdc77c1c7a4977b2aa41ec891 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 13 Jun 2023 13:06:36 +0200 Subject: backlight/bd6107: Compare against struct fb_info.device From: Thomas Zimmermann commit 992bdddaabfba19bdc77c1c7a4977b2aa41ec891 upstream. Struct bd6107_platform_data refers to a platform device within the Linux device hierarchy. The test in bd6107_backlight_check_fb() compares it against the fbdev device in struct fb_info.dev, which is different. Fix the test by comparing to struct fb_info.device. Fixes a bug in the backlight driver and prepares fbdev for making struct fb_info.dev optional. v2: * move renames into separate patch (Javier, Sam, Michael) Fixes: 67b43e590415 ("backlight: Add ROHM BD6107 backlight driver") Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: dri-devel@lists.freedesktop.org Cc: # v3.12+ Reviewed-by: Javier Martinez Canillas Reviewed-by: Sam Ravnborg Reviewed-by: Daniel Thompson Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-2-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/video/backlight/bd6107.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/backlight/bd6107.c +++ b/drivers/video/backlight/bd6107.c @@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(str { struct bd6107 *bd = bl_get_data(backlight); - return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; + return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->device; } static const struct backlight_ops bd6107_backlight_ops = { Patches currently in stable-queue which might be from tzimmermann@suse.de are queue-5.10/backlight-gpio_backlight-compare-against-struct-fb_info.device.patch queue-5.10/backlight-lv5207lp-compare-against-struct-fb_info.device.patch queue-5.10/backlight-bd6107-compare-against-struct-fb_info.device.patch