]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel-mid_wdt: Error code is just an integer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Nov 2016 15:24:41 +0000 (17:24 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 16 Dec 2016 14:53:54 +0000 (06:53 -0800)
commitbb79036215e2ca9d7ef5bd1461981396989c40da
treef4b91dfb43da997c8d9baeb344566603f0994733
parent31ecad65b011d64dfc80cab7c968078171aa2642
intel-mid_wdt: Error code is just an integer

Error code when printed is more readable if it's represented as plain decimal
integer. Otherwise user will see something like
intel_mid_wdt: Error stopping watchdog: 0xffffffed
which is not quite understandable ("Should I interpret it as a bitfield?").

Make it clear to use plaint integer specifier.

While here, move struct device *dev local variable definition to the top of
functions.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/intel-mid_wdt.c