watchdog: imx7ulp: Pass the wdog instance inimx7ulp_wdt_enable()
authorFabio Estevam <festevam@gmail.com>
Tue, 29 Oct 2019 17:40:34 +0000 (14:40 -0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 18 Nov 2019 18:53:41 +0000 (19:53 +0100)
commit747d88a1a88c1bfd0063ae01aa50bfa9e8ecb355
tree1ef83b7b4ba6c23d9a013bd50638540c72b8c4c0
parent4c0bfc039c8882cd6974c1c9fbf0596cdd58d2a6
watchdog: imx7ulp: Pass the wdog instance inimx7ulp_wdt_enable()

It is more natural to pass the watchdog instance inside
imx7ulp_wdt_enable() instead of the base address.

This also has the benefit to reduce the code a bit.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191029174037.25381-2-festevam@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx7ulp_wdt.c