watchdog: max63xx_wdt: Add device tree probing
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Jul 2021 15:33:14 +0000 (17:33 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 22 Aug 2021 08:28:11 +0000 (10:28 +0200)
commit585ba602b1ff76dd6e7fbd488a8c5921ae422305
tree0bd75b54ab5cdbfbce85b5c2aefdc628c90ddd86
parent11648fa1886606f42ca7b7d6eb1ab219de7071f2
watchdog: max63xx_wdt: Add device tree probing

This adds device tree probing to the MAX63xx driver so it can be
instantiated from the device tree. We use the generic fwnode-based
method to get to the match data and clean up by constifying the
functions as the match is indeed a const.

Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210714153314.1004147-2-linus.walleij@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/max63xx_wdt.c