Re: [PATCH v5 2/5] gpiolib: provide VALIDATE_DESC_PTR() macro

From: Linus Walleij
Date: Fri Feb 28 2020 - 17:15:54 EST


On Fri, Feb 21, 2020 at 4:48 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
>
> We're about to add a public GPIO function that takes a descriptor as
> argument and returns a pointer. Add a corresponding macro wrapping the
> validate_desc() function that returns an ERR_PTR() on error.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
(I expect to get this back as a pull request or something later.)

Yours,
Linus Walleij