Re: [PATCH] gpiolib: provide and use gpiod_line_state_notify()

Linus Walleij
2023-08-23T08:36:37Z

On Mon, Aug 21, 2023 at 4:18 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> Wrap the calls to blocking_notifier_call_chain() for the line state
> notifier with a helper that allows us to use fewer lines of code and
> simpler syntax.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Not to mention easier to read the code and understand what is
going on. I would have made it into a static inline in the header
file, maybe, but who cares about such details.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij