Re: [PATCH 1/2] gpio: mpc8xxx: use a helper variable to store the address of pdev->dev

From: Linus Walleij
Date: Fri Oct 11 2024 - 03:05:48 EST


On Wed, Oct 9, 2024 at 6:29 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> Instead of repeatedly dereferencing pdev, just store the address of the
> embedded struct device in a local variable and use it instead for
> improved readability.
>
> While at it: rearrange variable declarations.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

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

Yours,
Linus Walleij