[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7r44ci6ojbkc2gsvaj5ekgd76sictqek3xmhhebicugm43rbt5@micbmk7ndzm3>
Date: Wed, 9 Apr 2025 11:17:28 +0200
From: Marek BehĂșn <marek.behun@....cz>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Marek BehĂșn <kabel@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>, linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH] platform: cznic: use new GPIO line value setter callbacks
On Tue, Apr 08, 2025 at 09:19:19AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
...
> -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
Powered by blists - more mailing lists