11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
13 #include <linux/module.h>
15 #include <linux/types.h>
16 #include <linux/kernel.h>
18 #include <linux/watchdog.h>
25 "Watchdog cannot be stopped once started (default="
33 } wm8350_wdt_cfgs[] = {
46 for (i = 0; i <
ARRAY_SIZE(wm8350_wdt_cfgs); i++)
47 if (wm8350_wdt_cfgs[i].
time == timeout)
57 reg |= wm8350_wdt_cfgs[
i].val;
69 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
89 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
108 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev);
124 .identity =
"WM8350 Watchdog",
129 .start = wm8350_wdt_start,
130 .stop = wm8350_wdt_stop,
131 .ping = wm8350_wdt_ping,
132 .set_timeout = wm8350_wdt_set_timeout,
136 .info = &wm8350_wdt_info,
137 .ops = &wm8350_wdt_ops,
145 struct wm8350 *wm8350 = platform_get_drvdata(pdev);
148 pr_err(
"No driver data supplied\n");
152 watchdog_set_nowayout(&wm8350_wdt, nowayout);
153 watchdog_set_drvdata(&wm8350_wdt, wm8350);
156 wm8350_wdt_set_timeout(&wm8350_wdt, 4);
168 .probe = wm8350_wdt_probe,
171 .name =
"wm8350-wdt",