Watchdog: sp5100_tco: Move timer initialization into function
authorTerry Bowman <terry.bowman@amd.com>
Wed, 2 Feb 2022 15:35:22 +0000 (09:35 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 27 Mar 2022 15:04:32 +0000 (17:04 +0200)
commitabd71a948f7aab47ca49d3e7fe6afa6c48c8aae0
treed4fa9dcfcef5ee3dd7c3681df81f31c473995aba
parent1aea522809e67f42295ceb1d21429d76c43697e4
Watchdog: sp5100_tco: Move timer initialization into function

Refactor driver's timer initialization into new function. This is needed
inorder to support adding new device layouts while using common timer
initialization.

Co-developed-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Tested-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220202153525.1693378-2-terry.bowman@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sp5100_tco.c