Re: [PATCH] platform: cznic: use new GPIO line value setter callbacks
From: Bartosz Golaszewski
Date: Wed Apr 09 2025 - 07:04:50 EST
On Wed, Apr 9, 2025 at 11:17 AM Marek Behún <marek.behun@xxxxxx> wrote:
>
> On Tue, Apr 08, 2025 at 09:19:19AM +0200, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> ...
>
> > -static void omnia_gpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
> > - unsigned long *bits)
> > +static int omnia_gpio_set_multiple(struct gpio_chip *gc, unsigned long *mask,
> > + unsigned long *bits)
> > {
> > unsigned long ctl = 0, ctl_mask = 0, ext_ctl = 0, ext_ctl_mask = 0;
> > struct omnia_mcu *mcu = gpiochip_get_data(gc);
> > unsigned int i;
> > + int ret;
>
> In this driver the name `err' is used everywhere for this kind of
> variable (when it contains error code or zero for success).
> `ret' is only used if the variable can also contain positive return
> value.
>
> Bartosz, I will send updated version, if that is okay with you?
>
> Marek
Sure, I can also do it myself if you prefer.
Bart