Re: [PATCH v1 2/2] gpiolib: Introduce gpiod_request_user() helper

From: Linus Walleij
Date: Mon May 24 2021 - 20:27:17 EST


On Tue, May 18, 2021 at 5:50 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> The gpiod_request_user() is a special helper to avoid propagating stuff
> to user space that should not be propagated, e.g. internal error codes.
>
> For now, hide EPROBE_DEFER with ENODEV.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

This looks like a good solution.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij