hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/watchdog.h
....@@ -37,15 +37,15 @@
3737 *
3838 * The watchdog_ops structure contains a list of low-level operations
3939 * that control a watchdog device. It also contains the module that owns
40
- * these operations. The start and stop function are mandatory, all other
40
+ * these operations. The start function is mandatory, all other
4141 * functions are optional.
4242 */
4343 struct watchdog_ops {
4444 struct module *owner;
4545 /* mandatory operations */
4646 int (*start)(struct watchdog_device *);
47
- int (*stop)(struct watchdog_device *);
4847 /* optional operations */
48
+ int (*stop)(struct watchdog_device *);
4949 int (*ping)(struct watchdog_device *);
5050 unsigned int (*status)(struct watchdog_device *);
5151 int (*set_timeout)(struct watchdog_device *, unsigned int);
....@@ -90,9 +90,6 @@
9090 *
9191 * The driver-data field may not be accessed directly. It must be accessed
9292 * via the watchdog_set_drvdata and watchdog_get_drvdata helpers.
93
- *
94
- * The lock field is for watchdog core internal use only and should not be
95
- * touched.
9693 */
9794 struct watchdog_device {
9895 int id;
....@@ -213,6 +210,8 @@
213210 extern int watchdog_register_device(struct watchdog_device *);
214211 extern void watchdog_unregister_device(struct watchdog_device *);
215212
213
+int watchdog_set_last_hw_keepalive(struct watchdog_device *, unsigned int);
214
+
216215 /* devres register variant */
217216 int devm_watchdog_register_device(struct device *dev, struct watchdog_device *);
218217