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

From: Linus Walleij
Date: Thu Feb 08 2024 - 07:21:41 EST

On Thu, Feb 8, 2024 at 10:59 AM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> Don't dereference gdev->chip if the same information can be obtained
> from struct gpio_device.
> Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Linus Walleij