[PATCH 2/3] gpio: xilinx: use helper variable to store the address of pdev->dev
Linus Walleij
linus.walleij at linaro.org
Wed Oct 2 06:19:56 PDT 2024
On Mon, Sep 30, 2024 at 4:48 PM Bartosz Golaszewski <brgl at bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
>
> For better readability don't repeatedly dereference pdev->dev but
> instead store the address of the embedded struct device in a local
> variable in probe().
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list