#include <linux/clk.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#define REG_WDT_CLR …
#define REG_WDT_MAX_PRD_L …
#define REG_WDT_MAX_PRD_H …
#define MSC313E_WDT_MIN_TIMEOUT …
#define MSC313E_WDT_DEFAULT_TIMEOUT …
static unsigned int timeout;
module_param(timeout, int, 0);
MODULE_PARM_DESC(…) …;
struct msc313e_wdt_priv { … };
static int msc313e_wdt_start(struct watchdog_device *wdev)
{ … }
static int msc313e_wdt_ping(struct watchdog_device *wdev)
{ … }
static int msc313e_wdt_stop(struct watchdog_device *wdev)
{ … }
static int msc313e_wdt_settimeout(struct watchdog_device *wdev, unsigned int new_time)
{ … }
static const struct watchdog_info msc313e_wdt_ident = …;
static const struct watchdog_ops msc313e_wdt_ops = …;
static const struct of_device_id msc313e_wdt_of_match[] = …;
MODULE_DEVICE_TABLE(of, msc313e_wdt_of_match);
static int msc313e_wdt_probe(struct platform_device *pdev)
{ … }
static int __maybe_unused msc313e_wdt_suspend(struct device *dev)
{ … }
static int __maybe_unused msc313e_wdt_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(msc313e_wdt_pm_ops, msc313e_wdt_suspend, msc313e_wdt_resume);
static struct platform_driver msc313e_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;