Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5267988rwl; Sun, 8 Jan 2023 11:42:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXvMm/6tBOBCAG99d8pXdAzE3G4qX5HC1yb8Kv021W6fs+8INnHxbJh1kBYPTB1c1jQryGBd X-Received: by 2002:a05:6a20:a8a2:b0:b2:310a:9fd2 with SMTP id ca34-20020a056a20a8a200b000b2310a9fd2mr77829808pzb.43.1673206965658; Sun, 08 Jan 2023 11:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673206965; cv=none; d=google.com; s=arc-20160816; b=rfW0DsZmCYEpCms8xLNicdGaSPDcn1ofI3kX1Tc5aPkpaFcG/PAQJ6HBYXLv0owTR9 +q2TIKMZ0TXVbJDKNE7Slm7C3WTyALEnyy1jE7t7jZByoCegUambn9sevooatpK3RIGR uPYpUog8EPSkYCUk7mQvHeq5rNJ5LckBUngfIqpN/CI0mkMSczFCfqRTm3ZEB+WVNxAp 5HSB/Emk9CDwkB7pGNWVbCfTgtG/RKhH+n1h9kqHRTeNjjKeP45NuuV9Jh5zGuEcI85F vDeW2akAkLRImNEV5p7q+pHjxJ4uX21mMLLDG4j4zolSOw6f9rBxyPrInzdBCxhcc5qW iB4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date; bh=BsddAG4JBaf0Mqz24toGw5td2noPS9KIKO9AVhLZjsQ=; b=hldexVQuJXrfimfC/txw0OQS/o8piBwZJ3ruXdVIqcn7rZ/KLdTFxOwrTqusGTSPSv 27ynxF72GwywAfwgoVJlbPYsyLRGHob5YbBoHYJvuQPHu9AbflYoA3bzcdGf/XjIqIt+ fu+yzHXA0MO0LH/Rp591dYkyyktGRNuF3c/Y5W/u42KCtvLIXuGjN0in3seOg0e7E7S3 ujKcnkN15pFiq+8hhsd2t/7h4ZSObNHB7jutz1iSA71qL276BantjHJITxfUZ8ieRk6K 44o2RHLSHlrjH+6bNGojxLEpGsl5A67uH3O9zRJCG4TahAcOVe4+S0PexUnoeNaMtNZu lmng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a65580b000000b0047701022c7dsi7814174pgr.729.2023.01.08.11.42.39; Sun, 08 Jan 2023 11:42:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjAHTgT (ORCPT + 53 others); Sun, 8 Jan 2023 14:36:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjAHTgQ (ORCPT ); Sun, 8 Jan 2023 14:36:16 -0500 X-Greylist: delayed 395 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 08 Jan 2023 11:36:15 PST Received: from 2.mo560.mail-out.ovh.net (2.mo560.mail-out.ovh.net [188.165.53.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028E52BCB for ; Sun, 8 Jan 2023 11:36:14 -0800 (PST) Received: from director10.ghost.mail-out.ovh.net (unknown [10.108.20.202]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 9300424098 for ; Sun, 8 Jan 2023 19:29:37 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-5zc6k (unknown [10.111.208.1]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 256A21FF13; Sun, 8 Jan 2023 19:29:33 +0000 (UTC) Received: from sk2.org ([37.59.142.102]) by ghost-submission-6684bf9d7b-5zc6k with ESMTPSA id NzpKBp0Zu2OoSAEAosFdow (envelope-from ); Sun, 08 Jan 2023 19:29:33 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-102R00419398439-321a-44a9-9cd6-de394649d1c8, 5128B599F7D401446F64D4771BE19AB2B9CD7A8B) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 Date: Sun, 8 Jan 2023 20:29:31 +0100 From: Stephen Kitt To: Sam Ravnborg via B4 Submission Endpoint Cc: , Nicolas Ferre , Helge Deller , Alexandre Belloni , Claudiu Beznea , Antonino Daplas , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Robin van der Gracht , Miguel Ojeda , Lee Jones , Daniel Thompson , Jingoo Han , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, Thomas Zimmermann , Andy Shevchenko , Javier Martinez Canillas , Peter Suti Subject: Re: [PATCH 10/15] staging: fbtft: core: Introduce backlight_is_blank() Message-ID: <20230108202931.42c9ee66@heffalump.sk2.org> In-Reply-To: <20230107-sam-video-backlight-drop-fb_blank-v1-10-1bd9bafb351f@ravnborg.org> References: <20230107-sam-video-backlight-drop-fb_blank-v1-0-1bd9bafb351f@ravnborg.org> <20230107-sam-video-backlight-drop-fb_blank-v1-10-1bd9bafb351f@ravnborg.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/BJ.jj8xoOBPKImJW1n2hw0J"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Ovh-Tracer-Id: 1846757322849420934 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrkeeggdduvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkjghfofggtgesghdtreerredtvdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepfeffgefhgfeuueeffeejieefieefgfefffethfdtudegvdejueelhffhfeegjeeinecukfhppeduvdejrddtrddtrddupdefjedrheelrddugedvrddutddvnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeoshhtvghvvgesshhkvddrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/BJ.jj8xoOBPKImJW1n2hw0J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 07 Jan 2023 19:26:24 +0100, Sam Ravnborg via B4 Submission Endpoint wrote: > From: Sam Ravnborg >=20 > Avoiding direct access to backlight_properties.props. >=20 > Access to the deprecated props.fb_blank replaced by backlight_is_blank(). > Access to props.power is dropped - it was only used for debug. >=20 > Signed-off-by: Sam Ravnborg > Cc: Thomas Zimmermann > Cc: Andy Shevchenko > Cc: Javier Martinez Canillas > Cc: Greg Kroah-Hartman > Cc: Sam Ravnborg > Cc: Stephen Kitt > Cc: Peter Suti > Cc: linux-fbdev@vger.kernel.org > --- > drivers/staging/fbtft/fbtft-core.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/staging/fbtft/fbtft-core.c > b/drivers/staging/fbtft/fbtft-core.c index afaba94d1d1c..1746327e1939 100= 644 > --- a/drivers/staging/fbtft/fbtft-core.c > +++ b/drivers/staging/fbtft/fbtft-core.c > @@ -132,15 +132,15 @@ static int fbtft_backlight_update_status(struct > backlight_device *bd) { > struct fbtft_par *par =3D bl_get_data(bd); > bool polarity =3D par->polarity; > + bool blank =3D backlight_is_blank(bd); > =20 > - fbtft_par_dbg(DEBUG_BACKLIGHT, par, > - "%s: polarity=3D%d, power=3D%d, fb_blank=3D%d\n", > - __func__, polarity, bd->props.power, > bd->props.fb_blank); > + fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s: polarity=3D%d, blank=3D%d\n", > + __func__, polarity, blank); > =20 > - if (!backlight_is_blank(bd)) > - gpiod_set_value(par->gpio.led[0], polarity); > - else > + if (blank) > gpiod_set_value(par->gpio.led[0], !polarity); > + else > + gpiod_set_value(par->gpio.led[0], polarity); > =20 > return 0; > } >=20 > --=20 > 2.34.1 Reviewed-by: Stephen Kitt --Sig_/BJ.jj8xoOBPKImJW1n2hw0J Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmO7GZsACgkQgNMC9Yht g5wubw/+OjnQ4CEmY5Wjdqc5kVNQk3JFua1QNs/C0p6yt+0Z+jZGg/gsNAzlKXCI Gm1o0/JkT8sJ3Th8mMKikKDs8y8SiHfHkm7gR0HRcUwdML8RHDCDr4d0yBS/xLtP 7fwQNf604rHXvP2Tlt/hZvM6r6gfGve+t9pFqwhToCARgZgEY08UEf4rfPTkBYBz vRcvriKaj9O59OBgG7QjSxKWNPyhYumnL1GRJZzbrOgu5zAk8zJUCxAy/LD3fMy6 x+rePxWXUOQQtVlW4T/jMBADrnHgwoluBNA12CnsXBm14ZXrennS6bm0f3xjaHka KkreOCwMglpI1/UaLTwqlRUQALocxWsQypP5hlG2OO4FcnDUagGhj1M5KNC4OPF8 rWi/LUWyLLs32FMZiq4Y561ev6OTCsqlgO1r8DVQAsaZVhPcn9TfiDOQp/HaCeRo DAsncfhZEk9Cm6/vsv3NijYTlHBXfgWd7AKYCiUEVFqdGqUZ+1RdFxdqcj0CM7Fp HNfcXRAcTA1b0EJrLKQK472vW38RhFzvfvWs5xnX4O/JHDxo0x9Mb4N8pUYMRcFb W2Md6wkDlESuYv8XD2cId/zmb36TyKSZQfBkuCmXxiG1zJK+phoNuUICF+a4ApRk cYG3xI2aM1ayPFQE+4njm3MuaS9/G+6XzyEn9qzeas4Kc1M1xiw= =e1F4 -----END PGP SIGNATURE----- --Sig_/BJ.jj8xoOBPKImJW1n2hw0J--