Re: [PATCH 04/15] gpio: bd71828: use new line value setter callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/03/2025 15:22, Bartosz Golaszewski wrote:
On Mon, Mar 10, 2025 at 2:20 PM Matti Vaittinen
<mazziesaccount@xxxxxxxxx> wrote:

@@ -28,12 +27,10 @@ static void bd71828_gpio_set(struct gpio_chip *chip, unsigned int offset,
        * we are dealing with - then we are done
        */
       if (offset == HALL_GPIO_OFFSET)
-             return;
+             return 0;

Should this be -EINVAL (or, can this check be just dropped?) Value of an
input pin is tried to be set.


I don't want to break existing users but I did notice that and figured
that we should rather check this in core GPIO code not each individual
driver.

Makes sense :) Thanks!

In that case,

Reviewed-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>


I put that on my TODO list.

Bart





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux