gpio: ge: Utilise temporary variable for struct device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Jul 2023 16:13:18 +0000 (19:13 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 27 Jul 2023 07:33:04 +0000 (09:33 +0200)
commit806693e6cb8cb96349e482670cf0c82fe6359c4a
tree14da324bc496b858667653d64af27b76e8ed07e6
parent0cf2b4f550fd6e2e7378a9f13a216a784ebcd7c0
gpio: ge: Utilise temporary variable for struct device

We have a temporary variable to keep pointer to struct device.
Utilise it inside the ->probe() implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-ge.c