#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/uaccess.h>
#include <linux/mfd/wm8350/core.h>
static bool nowayout = … WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
static DEFINE_MUTEX(wdt_mutex);
static struct { … } wm8350_wdt_cfgs[] = …;
static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev,
unsigned int timeout)
{ … }
static int wm8350_wdt_start(struct watchdog_device *wdt_dev)
{ … }
static int wm8350_wdt_stop(struct watchdog_device *wdt_dev)
{ … }
static int wm8350_wdt_ping(struct watchdog_device *wdt_dev)
{ … }
static const struct watchdog_info wm8350_wdt_info = …;
static const struct watchdog_ops wm8350_wdt_ops = …;
static struct watchdog_device wm8350_wdt = …;
static int wm8350_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver wm8350_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;