[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=McmRB8iNPrTztoSLbEXX2WxNp5d3t5--AAqzqU2LQ+FGw@mail.gmail.com>
Date: Thu, 24 Apr 2025 20:55:33 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: wens@...e.org
Cc: Basavaraj Natikar <Basavaraj.Natikar@....com>, Shyam Sundar S K <Shyam-sundar.S-k@....com>,
Linus Walleij <linus.walleij@...aro.org>, Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>, Andreas Färber <afaerber@...e.de>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>, Paul Cercueil <paul@...pouillou.net>,
Steen Hegelund <Steen.Hegelund@...rochip.com>, Daniel Machon <daniel.machon@...rochip.com>,
UNGLinuxDriver@...rochip.com,
Ludovic Desroches <ludovic.desroches@...rochip.com>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>, Claudiu Beznea <claudiu.beznea@...on.dev>,
Andrew Lunn <andrew@...n.ch>, Gregory Clement <gregory.clement@...tlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>, Krzysztof Kozlowski <krzk@...nel.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>, Alim Akhtar <alim.akhtar@...sung.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-actions@...ts.infradead.org,
linux-mips@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH 02/12] pinctrl: axp209: use new GPIO line value setter callbacks
On Thu, Apr 24, 2025 at 7:43 PM Chen-Yu Tsai <wens@...e.org> wrote:
>
> On Thu, Apr 24, 2025 at 4:35 PM Bartosz Golaszewski <brgl@...ev.pl> wrote:
> >
> > From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> >
> > struct gpio_chip now has callbacks for setting line values that return
> > an integer, allowing to indicate failures. Convert the driver to using
> > them.
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
>>
> > /* AXP209 has GPIO3 status sharing the settings register */
> > if (offset == 3) {
> > - regmap_update_bits(pctl->regmap, AXP20X_GPIO3_CTRL,
> > - AXP20X_GPIO3_FUNCTIONS,
> > - value ? AXP20X_GPIO3_FUNCTION_OUT_HIGH :
> > - AXP20X_GPIO3_FUNCTION_OUT_LOW);
> > - return;
> > + return regmap_update_bits(pctl->regmap, AXP20X_GPIO3_CTRL,
> > + AXP20X_GPIO3_FUNCTIONS,
> > + value ?
> > + AXP20X_GPIO3_FUNCTION_OUT_HIGH :
> > + AXP20X_GPIO3_FUNCTION_OUT_LOW);
> > }
>
> I guess you could also drop the curly braces, but otherwise
>
> Reviewed-by: Chen-Yu Tsai <wens@...e.org>
>
Right. Linus: can you remove them while applying?
Bart
Powered by blists - more mailing lists