#include <linux/device.h>
#include <linux/mfd/rn5t618.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#define DRIVER_NAME …
static bool nowayout = … WATCHDOG_NOWAYOUT;
static unsigned int timeout;
module_param(timeout, uint, 0);
MODULE_PARM_DESC(…) …;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
struct rn5t618_wdt { … };
static const struct { … } rn5t618_wdt_map[] = …;
static int rn5t618_wdt_set_timeout(struct watchdog_device *wdt_dev,
unsigned int t)
{ … }
static int rn5t618_wdt_start(struct watchdog_device *wdt_dev)
{ … }
static int rn5t618_wdt_stop(struct watchdog_device *wdt_dev)
{ … }
static int rn5t618_wdt_ping(struct watchdog_device *wdt_dev)
{ … }
static const struct watchdog_info rn5t618_wdt_info = …;
static const struct watchdog_ops rn5t618_wdt_ops = …;
static int rn5t618_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rn5t618_wdt_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;