summaryrefslogtreecommitdiff
path: root/include/linux/watchdog.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-02-26 17:32:49 -0800
committerWim Van Sebroeck <wim@iguana.be>2016-03-01 15:36:35 +0100
commit4d8b229d5ea610affe672e919021e9d02cd877da (patch)
treea5f42d4a023b28deae9d5944058cd862423be30e /include/linux/watchdog.h
parent0ce72f354482cfa40fb0a6619511ab94d6daa5e9 (diff)
watchdog: Add 'action' and 'data' parameters to restart handler callback
The 'action' (or restart mode) and data parameters may be used by restart handlers, so they should be passed to the restart callback functions. Cc: Sylvain Lemieux <slemieux@tycoint.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'include/linux/watchdog.h')
-rw-r--r--include/linux/watchdog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h
index b585fa2507ee..0b565f2ad242 100644
--- a/include/linux/watchdog.h
+++ b/include/linux/watchdog.h
@@ -46,7 +46,7 @@ struct watchdog_ops {
unsigned int (*status)(struct watchdog_device *);
int (*set_timeout)(struct watchdog_device *, unsigned int);
unsigned int (*get_timeleft)(struct watchdog_device *);
- int (*restart)(struct watchdog_device *);
+ int (*restart)(struct watchdog_device *, unsigned long, void *);
long (*ioctl)(struct watchdog_device *, unsigned int, unsigned long);
};