]> asedeno.scripts.mit.edu Git - linux.git/commit
watchdog: simplify getting .drvdata
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Apr 2018 14:06:29 +0000 (16:06 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 May 2018 19:24:40 +0000 (21:24 +0200)
commit20745634c569b9948678b166f94da3041296ef52
tree0b9b1856011df68026007ed4de6dd900edc0bc93
parent771c577c23bac90597c685971d7297ea00f99d11
watchdog: simplify getting .drvdata

We should get drvdata from struct device directly. Going via
platform_device is an unneeded step back and forth.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Michal Simek <michal.simek@xilinx.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/cadence_wdt.c
drivers/watchdog/of_xilinx_wdt.c
drivers/watchdog/wdat_wdt.c