summaryrefslogtreecommitdiff
path: root/Documentation/nios2
diff options
context:
space:
mode:
authorJustin Chen <justinpopo6@gmail.com>2015-09-02 18:00:17 (GMT)
committerWim Van Sebroeck <wim@iguana.be>2015-10-27 15:49:57 (GMT)
commit9dd4e173f71d5ac6ea37f7dbf49af6e5cd44f9fb (patch)
treed1927b774e1801b91446b5158252605ba68c9dee /Documentation/nios2
parent7a3629fe999028e09bc96ccb0c9e22e0a9cf2725 (diff)
downloadlinux-9dd4e173f71d5ac6ea37f7dbf49af6e5cd44f9fb.tar.xz
watchdog: watchdog_dev: Use device tree alias for naming watchdogs
Currently there is no way to easily differentiate multiple watchdog devices. The watchdogs are named by the order they are probed. 1st probed watchdog: /dev/watchdog0 2nd probed watchdog: /dev/watchdog1 ... This change uses the alias of the watchdog device node for the name of the watchdog. aliases { watchdog0 = "/...../...." watchdog3 = "/..../....." watchdog2 = "/..../....." ... } This will translate to... /dev/watchdog0 /dev/watchdog3 /dev/watchdog2 v2 Assign alias number to id in watchdog_core instead of watchdog_dev. If failed to get id, fallback to original ida_simple_get call. Signed-off-by: Justin Chen <justinpopo6@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'Documentation/nios2')
0 files changed, 0 insertions, 0 deletions