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

From: Matti Vaittinen
Date: Mon Mar 10 2025 - 10:44:49 EST


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