aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/watchdog')
-rw-r--r--Documentation/watchdog/watchdog-kernel-api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt
index 3c85fc7dc1f1..ce1fa22aa70b 100644
--- a/Documentation/watchdog/watchdog-kernel-api.txt
+++ b/Documentation/watchdog/watchdog-kernel-api.txt
@@ -41,6 +41,8 @@ The watchdog device structure looks like this:
41struct watchdog_device { 41struct watchdog_device {
42 int id; 42 int id;
43 struct cdev cdev; 43 struct cdev cdev;
44 struct device *dev;
45 struct device *parent;
44 const struct watchdog_info *info; 46 const struct watchdog_info *info;
45 const struct watchdog_ops *ops; 47 const struct watchdog_ops *ops;
46 unsigned int bootstatus; 48 unsigned int bootstatus;
@@ -58,6 +60,9 @@ It contains following fields:
58 watchdog_register_device. 60 watchdog_register_device.
59* cdev: cdev for the dynamic /dev/watchdog<id> device nodes. This 61* cdev: cdev for the dynamic /dev/watchdog<id> device nodes. This
60 field is also populated by watchdog_register_device. 62 field is also populated by watchdog_register_device.
63* dev: device under the watchdog class (created by watchdog_register_device).
64* parent: set this to the parent device (or NULL) before calling
65 watchdog_register_device.
61* info: a pointer to a watchdog_info structure. This structure gives some 66* info: a pointer to a watchdog_info structure. This structure gives some
62 additional information about the watchdog timer itself. (Like it's unique name) 67 additional information about the watchdog timer itself. (Like it's unique name)
63* ops: a pointer to the list of watchdog operations that the watchdog supports. 68* ops: a pointer to the list of watchdog operations that the watchdog supports.