gpio: xilinx: use helper variable to store the address of pdev->dev
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Sep 2024 14:48:03 +0000 (16:48 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 8 Oct 2024 08:17:07 +0000 (10:17 +0200)
commit3cc3af160be758e95c9b4008b3bf06f4a81b653f
treeacf45110b8599f4d45bfaba4f4b88cf84ac14813
parente96c6de61233bfea7d0d0c32a7d539906ac23180
gpio: xilinx: use helper variable to store the address of pdev->dev

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().

Acked-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240930144804.75068-2-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-xilinx.c