]> git.itanic.dy.fi Git - linux-stable/commit
watchdog: mt7621-wdt: avoid static global declarations
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 14 Feb 2023 10:39:35 +0000 (11:39 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Thu, 2 Mar 2023 05:51:23 +0000 (06:51 +0100)
commit783c7cb4659b53b5e1b809dac5e8cdf250145919
tree80c696b6bf1be7251e0f194b82c54f33c51610fa
parentff75e4eb71cb1b64da07a5a7e8140e202b365887
watchdog: mt7621-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.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20230214103936.1061078-5-sergio.paracuellos@gmail.com
[groeck: unsigned -> unsigned int]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/mt7621_wdt.c