watchdog: Use static struct class watchdog_class in stead of pointer
authorPratyush Anand <panand@redhat.com>
Thu, 17 Dec 2015 12:23:58 +0000 (17:53 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 27 Dec 2015 15:54:54 +0000 (16:54 +0100)
commit906d7a5cfeda508e7361f021605579a00cd82815
tree4dfcbf80d6209a1215ee5f4932e9ebcf860303e0
parentd68106bbec2c2a33faacd50a1f7d24954701f505
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>
drivers/watchdog/watchdog_core.c
drivers/watchdog/watchdog_core.h
drivers/watchdog/watchdog_dev.c