Re: [PATCH] platform: cznic: use new GPIO line value setter callbacks
From: Marek Behún
Date: Wed Apr 09 2025 - 05:26:46 EST
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