diff options
| author | Alan Cox <alan@linux.intel.com> | 2012-05-11 06:00:20 -0400 |
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2012-05-30 01:54:46 -0400 |
| commit | d6b469d915ae348b3bb8b25034063d6870ff4a00 (patch) | |
| tree | 7bc00fa1870ba2fb1a7943c1a1d9e524752cb299 /include/linux | |
| parent | 2bbeed016dd96045ec82c3a309afddcc3a0db1d2 (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 'include/linux')
| -rw-r--r-- | include/linux/watchdog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h index 32678a50f98d..c3545c5d918a 100644 --- a/include/linux/watchdog.h +++ b/include/linux/watchdog.h | |||
| @@ -95,6 +95,8 @@ struct watchdog_ops { | |||
| 95 | * | 95 | * |
| 96 | * @id: The watchdog's ID. (Allocated by watchdog_register_device) | 96 | * @id: The watchdog's ID. (Allocated by watchdog_register_device) |
| 97 | * @cdev: The watchdog's Character device. | 97 | * @cdev: The watchdog's Character device. |
| 98 | * @dev: The device for our watchdog | ||
| 99 | * @parent: The parent bus device | ||
| 98 | * @info: Pointer to a watchdog_info structure. | 100 | * @info: Pointer to a watchdog_info structure. |
| 99 | * @ops: Pointer to the list of watchdog operations. | 101 | * @ops: Pointer to the list of watchdog operations. |
| 100 | * @bootstatus: Status of the watchdog device at boot. | 102 | * @bootstatus: Status of the watchdog device at boot. |
| @@ -113,6 +115,8 @@ struct watchdog_ops { | |||
| 113 | struct watchdog_device { | 115 | struct watchdog_device { |
| 114 | int id; | 116 | int id; |
| 115 | struct cdev cdev; | 117 | struct cdev cdev; |
| 118 | struct device *dev; | ||
| 119 | struct device *parent; | ||
| 116 | const struct watchdog_info *info; | 120 | const struct watchdog_info *info; |
| 117 | const struct watchdog_ops *ops; | 121 | const struct watchdog_ops *ops; |
| 118 | unsigned int bootstatus; | 122 | unsigned int bootstatus; |
