2024-02-08 12:22:55

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH v3 16/24] gpio: sysfs: don't access gdev->chip if it's not needed

On Thu, Feb 8, 2024 at 10:59 AM Bartosz Golaszewski <[email protected]> wrote:

> From: Bartosz Golaszewski <[email protected]>
>
> Don't dereference gdev->chip if the same information can be obtained
> from struct gpio_device.
>
> Suggested-by: Andy Shevchenko <[email protected]>
> Signed-off-by: Bartosz Golaszewski <[email protected]>

Reviewed-by: Linus Walleij <[email protected]>

Yours,
Linus Walleij