Skip to content

Commit 383eba9

Browse files
committed
power: supply: qcom_battmgr: fix battery_id type
qcom_battmgr_update_request.battery_id is written to using cpu_to_le32() and should be of type __le32, just like all other 32bit integer requests for qcom_battmgr. Cc: [email protected] # 6.3 Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 29e8142 ("power: supply: Introduce Qualcomm PMIC GLINK power supply") Reviewed-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 488ef44 commit 383eba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/qcom_battmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct qcom_battmgr_property_request {
105105

106106
struct qcom_battmgr_update_request {
107107
struct pmic_glink_hdr hdr;
108-
u32 battery_id;
108+
__le32 battery_id;
109109
};
110110

111111
struct qcom_battmgr_charge_time_request {

0 commit comments

Comments
 (0)