summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/watchdog_core.h
diff options
context:
space:
mode:
authorPratyush Anand2015-12-17 13:23:58 +0100
committerWim Van Sebroeck2015-12-27 16:54:54 +0100
commit906d7a5cfeda508e7361f021605579a00cd82815 (patch)
tree4dfcbf80d6209a1215ee5f4932e9ebcf860303e0 /drivers/watchdog/watchdog_core.h
parentwatchdog: w83627hf_wdt: use core reboot notifier (diff)
downloadkernel-qcow2-linux-906d7a5cfeda508e7361f021605579a00cd82815.tar.gz
kernel-qcow2-linux-906d7a5cfeda508e7361f021605579a00cd82815.tar.xz
kernel-qcow2-linux-906d7a5cfeda508e7361f021605579a00cd82815.zip
watchdog: Use static struct class watchdog_class in stead of pointer
We need few sysfs attributes to know different status of a watchdog device. To do that, we need to associate .dev_groups with watchdog_class. So convert it from pointer to static. Putting this static struct in watchdog_dev.c, so that static device attributes defined in that file can be attached to it. Signed-off-by: Pratyush Anand <panand@redhat.com> Suggested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/watchdog_core.h')
-rw-r--r--drivers/watchdog/watchdog_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/watchdog_core.h b/drivers/watchdog/watchdog_core.h
index 6c951418fca7..1c8d6b0e68c7 100644
--- a/drivers/watchdog/watchdog_core.h
+++ b/drivers/watchdog/watchdog_core.h
@@ -33,5 +33,5 @@
*/
extern int watchdog_dev_register(struct watchdog_device *);
extern int watchdog_dev_unregister(struct watchdog_device *);
-extern int __init watchdog_dev_init(void);
+extern struct class * __init watchdog_dev_init(void);
extern void __exit watchdog_dev_exit(void);