power: supply: qcom_battmgr: fix battery_id type
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 19 Sep 2023 12:42:22 +0000 (14:42 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 30 Sep 2023 18:58:56 +0000 (20:58 +0200)
commit383eba9f9a7f4cd639d367ea5daa6df2be392c54
tree9b920e62d50de602ede91878f1bd6af587c437b3
parent488ef44c068e79752dba8eda0b75f524f111a695
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: 29e8142b5623 ("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>
drivers/power/supply/qcom_battmgr.c