Skip to content

Commit

Permalink
SM8550 - fix battery reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
porschemad911 committed Feb 26, 2025
1 parent 98e6e9b commit 4254aca
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions projects/Qualcomm/patches/linux/SM8550/0053-battery-name.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff -rupbN linux.orig/drivers/power/supply/qcom_battmgr.c linux/drivers/power/supply/qcom_battmgr.c
--- linux.orig/drivers/power/supply/qcom_battmgr.c 2025-02-26 22:12:21.401682314 +1100
+++ linux/drivers/power/supply/qcom_battmgr.c 2025-02-26 22:13:44.143270607 +1100
@@ -638,7 +638,7 @@ static const enum power_supply_property
};

static const struct power_supply_desc sc8280xp_bat_psy_desc = {
- .name = "qcom-battmgr-bat",
+ .name = "battery",
.type = POWER_SUPPLY_TYPE_BATTERY,
.properties = sc8280xp_bat_props,
.num_properties = ARRAY_SIZE(sc8280xp_bat_props),
@@ -668,7 +668,7 @@ static const enum power_supply_property
};

static const struct power_supply_desc sm8350_bat_psy_desc = {
- .name = "qcom-battmgr-bat",
+ .name = "battery",
.type = POWER_SUPPLY_TYPE_BATTERY,
.properties = sm8350_bat_props,
.num_properties = ARRAY_SIZE(sm8350_bat_props),

0 comments on commit 4254aca

Please # to comment.