aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-05-11 06:00:20 -0400
committerWim Van Sebroeck <wim@iguana.be>2012-05-30 01:54:46 -0400
commitd6b469d915ae348b3bb8b25034063d6870ff4a00 (patch)
tree7bc00fa1870ba2fb1a7943c1a1d9e524752cb299 /Documentation
parent2bbeed016dd96045ec82c3a309afddcc3a0db1d2 (diff)
watchdog: create all the proper device files
Create the watchdog class and it's associated devices. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'Documentation')
-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 3c85fc7dc1f..ce1fa22aa70 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.