mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
watchdog: add devm_watchdog_register_device() to watchdog-kernel-api
devm_watchdog_register_device() is not documented. Add it to the current kernel API documentation. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
c574bdb524
commit
0f3999f528
|
|
@ -42,6 +42,14 @@ The watchdog subsystem includes an registration deferral mechanism,
|
|||
which allows you to register an watchdog as early as you wish during
|
||||
the boot process.
|
||||
|
||||
There is also a resource-managed watchdog_register_device(),
|
||||
devm_watchdog_register_device(). If you use this to register a watchdog
|
||||
device, watchdog_unregister_device() is called automatically on driver
|
||||
detach::
|
||||
|
||||
int devm_watchdog_register_device(struct device *dev,
|
||||
struct watchdog_device *wdd);
|
||||
|
||||
The watchdog device structure looks like this::
|
||||
|
||||
struct watchdog_device {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user