diff options
Diffstat (limited to 'include/linux/watchdog.h')
-rw-r--r-- | include/linux/watchdog.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h index 1984ea610577..508d56399e6d 100644 --- a/include/linux/watchdog.h +++ b/include/linux/watchdog.h | |||
@@ -54,6 +54,8 @@ struct watchdog_info { | |||
54 | #ifdef __KERNEL__ | 54 | #ifdef __KERNEL__ |
55 | 55 | ||
56 | #include <linux/bitops.h> | 56 | #include <linux/bitops.h> |
57 | #include <linux/device.h> | ||
58 | #include <linux/cdev.h> | ||
57 | 59 | ||
58 | struct watchdog_ops; | 60 | struct watchdog_ops; |
59 | struct watchdog_device; | 61 | struct watchdog_device; |
@@ -89,6 +91,8 @@ struct watchdog_ops { | |||
89 | 91 | ||
90 | /** struct watchdog_device - The structure that defines a watchdog device | 92 | /** struct watchdog_device - The structure that defines a watchdog device |
91 | * | 93 | * |
94 | * @id: The watchdog's ID. (Allocated by watchdog_register_device) | ||
95 | * @cdev: The watchdog's Character device. | ||
92 | * @info: Pointer to a watchdog_info structure. | 96 | * @info: Pointer to a watchdog_info structure. |
93 | * @ops: Pointer to the list of watchdog operations. | 97 | * @ops: Pointer to the list of watchdog operations. |
94 | * @bootstatus: Status of the watchdog device at boot. | 98 | * @bootstatus: Status of the watchdog device at boot. |
@@ -105,6 +109,8 @@ struct watchdog_ops { | |||
105 | * via the watchdog_set_drvdata and watchdog_get_drvdata helpers. | 109 | * via the watchdog_set_drvdata and watchdog_get_drvdata helpers. |
106 | */ | 110 | */ |
107 | struct watchdog_device { | 111 | struct watchdog_device { |
112 | int id; | ||
113 | struct cdev cdev; | ||
108 | const struct watchdog_info *info; | 114 | const struct watchdog_info *info; |
109 | const struct watchdog_ops *ops; | 115 | const struct watchdog_ops *ops; |
110 | unsigned int bootstatus; | 116 | unsigned int bootstatus; |