Re: [PATCH 01/12] gpio: dln2: use new line value setter callbacks

From: Andy Shevchenko
Date: Mon Apr 07 2025 - 04:50:47 EST


On Mon, Apr 07, 2025 at 09:13:10AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> struct gpio_chip now has callbacks for setting line values that return
> an integer, allowing to indicate failures. Convert the driver to using
> them.

...

> -static void dln2_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
> +static int dln2_gpio_set(struct gpio_chip *chip, unsigned int offset,
> + int value)

It gets even shorter. If you are fan of 80 characters from last decade,
it still fits.

--
With Best Regards,
Andy Shevchenko