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 EC0F7EEB58C for ; Sat, 9 Sep 2023 12:57:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7585410E28D; Sat, 9 Sep 2023 12:57:11 +0000 (UTC) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79D6110E28E for ; Sat, 9 Sep 2023 12:57:09 +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 sin.source.kernel.org (Postfix) with ESMTPS id E068DCE0171; Sat, 9 Sep 2023 12:57:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE3C9C433C9; Sat, 9 Sep 2023 12:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694264226; bh=KZW+YIn1yBaBxWQfrmObg/NyzSrtLvLM6GzAKWV9V9U=; h=Subject:To:Cc:From:Date:From; b=MQKz02msBItMW9FqQh2SA+Y57pQgihMF18WbJQxfwf0+iCWtDhxumv00L6HdseD7p b438o6MNQdyUtEZdI5xpJr0gch21M+75g/VBAv2v9dqo5HTgCoXjf7FqWZ/ChGPWkN Rc/3BRBqHvmVoOkHvlCY7jQUyniMXqr3z4MibdGs= Subject: Patch "backlight/lv5207lp: Compare against struct fb_info.device" has been added to the 6.1-stable tree To: dalias@libc.org, daniel.thompson@linaro.org, dri-devel@lists.freedesktop.org, glaubitz@physik.fu-berlin.de, gregkh@linuxfoundation.org, javierm@redhat.com, jingoohan1@gmail.com, laurent.pinchart+renesas@ideasonboard.com, lee@kernel.org, sam@ravnborg.org, tzimmermann@suse.de, ysato@users.sourceforge.jp From: Date: Sat, 09 Sep 2023 13:56:41 +0100 Message-ID: <2023090941-enforced-nacho-ec3a@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/lv5207lp: Compare against struct fb_info.device to the 6.1-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-lv5207lp-compare-against-struct-fb_info.device.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 1ca8819320fd84e7d95b04e7668efc5f9fe9fa5c Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 13 Jun 2023 13:06:40 +0200 Subject: backlight/lv5207lp: Compare against struct fb_info.device From: Thomas Zimmermann commit 1ca8819320fd84e7d95b04e7668efc5f9fe9fa5c upstream. Struct lv5207lp_platform_data refers to a platform device within the Linux device hierarchy. The test in lv5207lp_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: 82e5c40d88f9 ("backlight: Add Sanyo LV5207LP backlight driver") Signed-off-by: Thomas Zimmermann Cc: Laurent Pinchart Cc: Yoshinori Sato Cc: Rich Felker Cc: John Paul Adrian Glaubitz Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: linux-sh@vger.kernel.org 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-6-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/video/backlight/lv5207lp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/backlight/lv5207lp.c +++ b/drivers/video/backlight/lv5207lp.c @@ -67,7 +67,7 @@ static int lv5207lp_backlight_check_fb(s { struct lv5207lp *lv = bl_get_data(backlight); - return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->dev; + return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->device; } static const struct backlight_ops lv5207lp_backlight_ops = { Patches currently in stable-queue which might be from tzimmermann@suse.de are queue-6.1/drm-hyperv-fix-a-compilation-issue-because-of-not-in.patch queue-6.1/backlight-gpio_backlight-compare-against-struct-fb_info.device.patch queue-6.1/backlight-lv5207lp-compare-against-struct-fb_info.device.patch queue-6.1/backlight-bd6107-compare-against-struct-fb_info.device.patch