Re: [PATCH v1 4/7] gpiolib: Call validate_desc() when VALIDATE_DESC() can't be used
From: Linus Walleij
Date: Wed Apr 16 2025 - 04:44:42 EST
On Tue, Apr 15, 2025 at 1:11 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> Call validate_desc() directly when VALIDATE_DESC() can't be used.
> It will print additional information useful for debugging.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> offset = gpio_chip_hwgpio(desc);
> if (gc->to_irq) {
> - int retirq = gc->to_irq(gc, offset);
> + ret = gc->to_irq(gc, offset);
> + if (ret)
> + return ret;
>
> /* Zero means NO_IRQ */
> - if (!retirq)
> - return -ENXIO;
> -
> - return retirq;
> + return -ENXIO;
Totally unrelated change - but I'm fine with that :D
Yours,
Linus Walleij