linux/drivers/watchdog/cros_ec_wdt.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2024 Google LLC.
 * Author: Lukasz Majczak <[email protected]>
 */

#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_data/cros_ec_commands.h>
#include <linux/platform_data/cros_ec_proto.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>

#define CROS_EC_WATCHDOG_DEFAULT_TIME
#define DRV_NAME

cros_ec_wdt_data __packed;

static int cros_ec_wdt_send_cmd(struct cros_ec_device *cros_ec,
				union cros_ec_wdt_data *arg)
{}

static int cros_ec_wdt_ping(struct watchdog_device *wdd)
{}

static int cros_ec_wdt_start(struct watchdog_device *wdd)
{}

static int cros_ec_wdt_stop(struct watchdog_device *wdd)
{}

static int cros_ec_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t)
{}

static const struct watchdog_info cros_ec_wdt_ident =;

static const struct watchdog_ops cros_ec_wdt_ops =;

static int cros_ec_wdt_probe(struct platform_device *pdev)
{}

static int __maybe_unused cros_ec_wdt_suspend(struct platform_device *pdev, pm_message_t state)
{}

static int __maybe_unused cros_ec_wdt_resume(struct platform_device *pdev)
{}

static const struct platform_device_id cros_ec_wdt_id[] =;

static struct platform_driver cros_ec_wdt_driver =;

module_platform_driver();

MODULE_DEVICE_TABLE(platform, cros_ec_wdt_id);
MODULE_DESCRIPTION();
MODULE_LICENSE();