aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mpc5200.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-09 18:29:09 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-14 10:30:11 +0200
commit2707a028c9b9c54a6dff22c9dcfebf3083ea095e (patch)
tree0cb8cc6885979bc0edca7961721591220fdcb842 /drivers/gpio/gpio-mpc5200.c
parent1b35c124f961b355dafb1906c591191bd0b37417 (diff)
downloadlinux-2707a028c9b9c54a6dff22c9dcfebf3083ea095e.tar.gz
linux-2707a028c9b9c54a6dff22c9dcfebf3083ea095e.tar.bz2
linux-2707a028c9b9c54a6dff22c9dcfebf3083ea095e.zip
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>
Diffstat (limited to 'drivers/gpio/gpio-mpc5200.c')
0 files changed, 0 insertions, 0 deletions