summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/x86-android-tablets/shared-psy-info.c
diff options
context:
space:
mode:
authorHans de Goede <hansg@kernel.org>2025-09-20 22:07:05 +0200
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-09-26 14:26:31 +0300
commita0133db5cdc02a8b6588558ebd4ca423c2f8c8bc (patch)
tree6b7fee7e67935616165408f5ed55b53e02dec882 /drivers/platform/x86/x86-android-tablets/shared-psy-info.c
parent6564e5d2ea06b262d3e87785693fd3e8903bef03 (diff)
platform/x86: x86-android-tablets: replace bat_swnode with swnode_group
Now that we are using software-nodes are used in more places it is useful to have a more generic mechanism to have the core code register software-nodes. Replace the bat_swnode registration mechanism with a more generic swnode_group registration mechanism. Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hansg@kernel.org> Link: https://patch.msgid.link/20250920200713.20193-13-hansg@kernel.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/x86-android-tablets/shared-psy-info.c')
-rw-r--r--drivers/platform/x86/x86-android-tablets/shared-psy-info.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/platform/x86/x86-android-tablets/shared-psy-info.c b/drivers/platform/x86/x86-android-tablets/shared-psy-info.c
index 6ebe282bda6e..62f41c14e6ba 100644
--- a/drivers/platform/x86/x86-android-tablets/shared-psy-info.c
+++ b/drivers/platform/x86/x86-android-tablets/shared-psy-info.c
@@ -113,6 +113,11 @@ const struct software_node generic_lipo_4v2_battery_node = {
.properties = generic_lipo_4v2_battery_props,
};
+const struct software_node *generic_lipo_4v2_battery_swnodes[] = {
+ &generic_lipo_4v2_battery_node,
+ NULL
+};
+
/* LiPo HighVoltage (max 4.35V) settings used by most devs with a HV battery */
static const struct property_entry generic_lipo_hv_4v35_battery_props[] = {
PROPERTY_ENTRY_STRING("compatible", "simple-battery"),
@@ -133,6 +138,11 @@ const struct software_node generic_lipo_hv_4v35_battery_node = {
.properties = generic_lipo_hv_4v35_battery_props,
};
+const struct software_node *generic_lipo_hv_4v35_battery_swnodes[] = {
+ &generic_lipo_hv_4v35_battery_node,
+ NULL
+};
+
/* For enabling the bq24190 5V boost based on id-pin */
static struct regulator_consumer_supply intel_int3496_consumer = {
.supply = "vbus",