]> git.itanic.dy.fi Git - linux-stable/commit
watchdog: rt2880-wdt: avoid static global declarations
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 1 Mar 2023 06:55:09 +0000 (07:55 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 22 Apr 2023 10:53:57 +0000 (12:53 +0200)
commit76ad36bf0ea620b14d32a332108a248412886d54
treecbbdb4a53831c86389d0e5dbede3652f477f8a9f
parent07d41160b3b65c621f9352196c3791fdc7d2380d
watchdog: rt2880-wdt: avoid static global declarations

Instead of using static global definitions in driver code, refactor code
introducing a new watchdog driver data structure and use it along the code.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230301065510.2818425-1-sergio.paracuellos@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/rt2880_wdt.c