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: stable@vger.kernel.org # 6.3 Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309162149.4owm9iXc-lkp@intel.com/ Fixes: 29e8142 ("power: supply: Introduce Qualcomm PMIC GLINK power supply") Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20230919124222.1155894-1-sebastian.reichel@collabora.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 488ef44 commit 383eba9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)