gpio: eic-sprd: use a helper variable for &pdev->dev
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 12 Sep 2023 09:45:18 +0000 (11:45 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 13 Sep 2023 12:13:32 +0000 (14:13 +0200)
commit7777fa924754f69f9748d6fe730b1e6f38adf252
treef4aa7d69d41c2dd38893df5c020ccecbb4f3c6cf
parentdbd31c71c5b2cc6dd7acd853e52fb6e7a37fdf61
gpio: eic-sprd: use a helper variable for &pdev->dev

Instead of dereferencing pdev everywhere, just store the address of the
underlying struct device in a local variable.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
drivers/gpio/gpio-eic-sprd.c