watchdog: export priority as device parameter
8f4cf30903 ("watchdog: Allow multiple watchdogs") introduced the ability
to set a per-watchdog priority from within drivers, which is usually
populated with of_get_watchdog_priority.

For debugging, it can be useful to query and override this priority on
the fly.  Provide a device parameter to do so.
As watchdog_get_default only considers priorities > 0, it makes sense
to have a newly set priority of 0 disable the watchdog.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2731cc0 commit c2d167823588708c9f8f68c7db111ce146e19e3f
@Ahmad Fatoum Ahmad Fatoum authored on 23 Oct 2019
Sascha Hauer committed on 24 Oct 2019
Showing 1 changed file
View
drivers/watchdog/wd_core.c