gpio: em: use a helper variable for &pdev->dev
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 11 Jul 2019 08:29:36 +0000 (10:29 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 22 Jul 2019 12:40:07 +0000 (14:40 +0200)
commit66ad66293edeb2bcc27a329f35018b18601da452
treeaf5a9d136cdec2ab6fdffc8d4e0af64f194d2a19
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
gpio: em: use a helper variable for &pdev->dev

Instead of always dereferencing &pdev->dev, just assign a helper local
variable of type struct device * and use it where applicable.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/gpio/gpio-em.c