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 118D8EEB572 for ; Sat, 9 Sep 2023 12:56:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2956310E275; Sat, 9 Sep 2023 12:56:21 +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 229C410E275 for ; Sat, 9 Sep 2023 12:56:20 +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 38466CE0627; Sat, 9 Sep 2023 12:56:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24325C433C8; Sat, 9 Sep 2023 12:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694264176; bh=88Bvithwe4Ml+xg62IXcp6orC/Y1bPNQtGCg3VeFT0Q=; h=Subject:To:Cc:From:Date:From; b=mXn0xuNltn2AWg32+wJcf9TCiO2koOyll+4jmsNAbqjmQTJEWqsqsfBVSgEhHmXyy O6mokb2vRaunDU6JEOiOdCWuByHo+TI2aYnpohTaqp3CcCbUcNh0CpCcRKL1gQRrSt rjcXeMh8rU2ANyKKbLW3zuGVQxW+HLB3OcbeorxA= Subject: Patch "backlight/lv5207lp: Compare against struct fb_info.device" has been added to the 4.19-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:04 +0100 Message-ID: <2023090904-sequel-squatter-68ee@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 4.19-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-4.19 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 @@ -75,7 +75,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-4.19/backlight-gpio_backlight-compare-against-struct-fb_info.device.patch queue-4.19/backlight-lv5207lp-compare-against-struct-fb_info.device.patch queue-4.19/backlight-bd6107-compare-against-struct-fb_info.device.patch queue-4.19/drm-msm-replace-drm_framebuffer_-un-reference-with-p.patch