gpio: exar: use a helper variable for &pdev->dev
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 28 Sep 2020 14:34:37 +0000 (16:34 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 25 Nov 2020 14:36:52 +0000 (15:36 +0100)
commit0c2c7e1323b44548c10f899df565e4c4154600f1
tree9391e39c59a3c7ba6586f9d47e1763c78aeb1a3c
parent8e27c2aef8c321ce94c69f397f26d7647a1914d0
gpio: exar: use a helper variable for &pdev->dev

It's more elegant to use a helper local variable to store the address
of the underlying struct device than to dereference pdev everywhere. It
also has the benefit of avoiding unnecessary line breaks.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-exar.c