watchdog: intel-mid_wdt: Use 'dev' instead of dereferencing it repeatedly
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2019 19:38:43 +0000 (12:38 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 5 May 2019 19:02:21 +0000 (21:02 +0200)
commitb7b6adf32c9c82b9f4a4b917ba204d5a9c6fd2da
treeb67dcc4d8a4732534af3b170f379496ed7a3dcca
parent1f25cb289296338075ec0ed103d63cfb9418abb1
watchdog: intel-mid_wdt: Use 'dev' instead of dereferencing it repeatedly

Introduce local variable 'struct device *dev' and use it instead of
dereferencing it repeatedly.

The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/intel-mid_wdt.c