]> asedeno.scripts.mit.edu Git - linux.git/commit
watchdog: da9063_wdt: Simplify by removing unneeded struct...
authorfzuuzf@googlemail.com <fzuuzf@googlemail.com>
Tue, 25 Jul 2017 11:25:58 +0000 (13:25 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sat, 9 Sep 2017 18:55:26 +0000 (20:55 +0200)
commita1f2a82072ea298ae91505c213f6d299ddb5e446
tree2c49b54648e661e7b354d16da0d1eb268926b23a
parentdd0a18ca4cbdce00bc2b2e0510793205af27c7c5
watchdog: da9063_wdt: Simplify by removing unneeded struct...

...da9063_watchdog, which contained nothing but struct watchdog_device and a
struct da9063 pointer.
Assign the struct da9063 pointer directly to the struct watchdog_device's
driver_data field instead of creating struct da9063_watchdog and assigning
it's address there.
Spares a pointer's size data memory and an indirection level in the callbacks.

Signed-off-by: Karsten Wiese <fzuuzf@googlemail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/da9063_wdt.c