]> git.ipfire.org Git - thirdparty/linux.git/commit
watchdog: Make API functions const correct
authorKari Argillander <kari.argillander@gmail.com>
Fri, 19 Dec 2025 20:42:38 +0000 (22:42 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 18 Jan 2026 09:56:10 +0000 (10:56 +0100)
commit439cf01b2e0030eed6020a03a7df4a528f8db7ba
treefa2db4c8c73ad4f332e510cdd813857771d24f1c
parentd303d37ef5cf86c8c3b2daefd2a7d7fd8ca1ec14
watchdog: Make API functions const correct

Many watchdog API functions do not modify the watchdog_device nor
device. Mark their arguments as const to reflect this and improve
const-correctness of the API.

No functional change intended.

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Documentation/watchdog/watchdog-kernel-api.rst
drivers/watchdog/watchdog_core.c
include/linux/watchdog.h