]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: grgpio: use a helper variable to store the address of ofdev->dev
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 15 Oct 2024 13:18:31 +0000 (15:18 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 22 Oct 2024 07:04:03 +0000 (09:04 +0200)
commitd036ae41cebdfae92666024163c109b8fef516fa
tree9408da56d1a7bfe98c13833ac833cbdd361a551c
parent537ec282f52a4b4b8921c3a395d721affd29c225
gpio: grgpio: use a helper variable to store the address of ofdev->dev

Instead of dereferencing the platform device pointer repeatedly, just
store its address in a helper variable.

Link: https://lore.kernel.org/r/20241015131832.44678-3-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-grgpio.c