summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2024-10-18 10:58:20 -0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-11-05 10:04:40 +0100
commit076354a4d4a73cb792a680a7f40f603c9b145a76 (patch)
treed696702bf69f929957f4074ea43fad0361ffb68e /include/linux/mfd
parent3a6a399cfbb72a96d61597c519a4076d4ab8669f (diff)
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>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/da9063/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/da9063/core.h b/include/linux/mfd/da9063/core.h
index 8db52324f416..eae82f421414 100644
--- a/include/linux/mfd/da9063/core.h
+++ b/include/linux/mfd/da9063/core.h
@@ -78,6 +78,7 @@ struct da9063 {
enum da9063_type type;
unsigned char variant_code;
unsigned int flags;
+ bool use_sw_pm;
/* Control interface */
struct regmap *regmap;