]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: mpc8xxx: use a helper variable to store the address of pdev->dev
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Oct 2024 16:29:09 +0000 (18:29 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 14 Oct 2024 08:30:11 +0000 (10:30 +0200)
commit2707a028c9b9c54a6dff22c9dcfebf3083ea095e
tree0cb8cc6885979bc0edca7961721591220fdcb842
parent1b35c124f961b355dafb1906c591191bd0b37417
gpio: mpc8xxx: use a helper variable to store the address of pdev->dev

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.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241009162910.33477-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mpc8xxx.c