#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/mfd/rohm-bd957x.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/watchdog.h>
static bool nowayout;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
#define HW_MARGIN_MIN …
#define HW_MARGIN_MAX …
#define BD957X_WDT_DEFAULT_MARGIN …
#define WATCHDOG_TIMEOUT …
struct bd9576_wdt_priv { … };
static void bd9576_wdt_disable(struct bd9576_wdt_priv *priv)
{ … }
static int bd9576_wdt_ping(struct watchdog_device *wdd)
{ … }
static int bd9576_wdt_start(struct watchdog_device *wdd)
{ … }
static int bd9576_wdt_stop(struct watchdog_device *wdd)
{ … }
static const struct watchdog_info bd957x_wdt_ident = …;
static const struct watchdog_ops bd957x_wdt_ops = …;
#define FASTNG_MIN …
static int find_closest_fast(int target, int *sel, int *val)
{ … }
static int find_closest_slow_by_fast(int fast_val, int target, int *slowsel)
{ … }
static int find_closest_slow(int target, int *slow_sel, int *fast_sel)
{ … }
#define BD957X_WDG_TYPE_WINDOW …
#define BD957X_WDG_TYPE_SLOW …
#define BD957X_WDG_TYPE_MASK …
#define BD957X_WDG_NG_RATIO_MASK …
#define BD957X_WDG_FASTNG_MASK …
static int bd957x_set_wdt_mode(struct bd9576_wdt_priv *priv, int hw_margin,
int hw_margin_min)
{ … }
static int bd9576_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver bd9576_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;