linux/drivers/watchdog/wm831x_wdt.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Watchdog driver for the wm831x PMICs
 *
 * Copyright (C) 2009 Wolfson Microelectronics
 */

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/uaccess.h>

#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/pdata.h>
#include <linux/mfd/wm831x/watchdog.h>

static bool nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC();

struct wm831x_wdt_drvdata {};

/* We can't use the sub-second values here but they're included
 * for completeness.  */
static struct {} wm831x_wdt_cfgs[] =;

static int wm831x_wdt_start(struct watchdog_device *wdt_dev)
{}

static int wm831x_wdt_stop(struct watchdog_device *wdt_dev)
{}

static int wm831x_wdt_ping(struct watchdog_device *wdt_dev)
{}

static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev,
				  unsigned int timeout)
{}

static const struct watchdog_info wm831x_wdt_info =;

static const struct watchdog_ops wm831x_wdt_ops =;

static int wm831x_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver wm831x_wdt_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();