30 Dec, 2015

1 commit

  • The watchdog character device is currently created in watchdog_dev.c,
    and the watchdog device in watchdog_core.c. This results in
    cross-dependencies, since device creation needs to know the watchdog
    character device number as well as the watchdog class, both of which
    reside in watchdog_dev.c.

    Create the watchdog device in watchdog_dev.c to simplify the code.

    Inspired by earlier patch set from Damien Riegel.

    Cc: Damien Riegel
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Guenter Roeck
     

27 Dec, 2015

1 commit

  • 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
    Suggested-by: Guenter Roeck
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Pratyush Anand
     

30 May, 2012

3 commits