]> Gentwo Git Trees - linux/.git/commit
watchdog: da9063: Do not use a global variable
authorFabio Estevam <festevam@denx.de>
Fri, 18 Oct 2024 13:58:20 +0000 (10:58 -0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2024 09:04:40 +0000 (10:04 +0100)
commit076354a4d4a73cb792a680a7f40f603c9b145a76
treed696702bf69f929957f4074ea43fad0361ffb68e
parent3a6a399cfbb72a96d61597c519a4076d4ab8669f
watchdog: da9063: Do not use a global variable

Using the 'use_sw_pm' variable as global is not recommended
as it prevents multi instances of the driver to run.

Make it a member of the da9063 structure instead.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241018135821.274376-1-festevam@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/da9063_wdt.c
include/linux/mfd/da9063/core.h