mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
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: 29e8142b56
("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>
This commit is contained in:
parent
488ef44c06
commit
383eba9f9a
@ -105,7 +105,7 @@ struct qcom_battmgr_property_request {
|
||||
|
||||
struct qcom_battmgr_update_request {
|
||||
struct pmic_glink_hdr hdr;
|
||||
u32 battery_id;
|
||||
__le32 battery_id;
|
||||
};
|
||||
|
||||
struct qcom_battmgr_charge_time_request {
|
||||
|
Loading…
Reference in New Issue
Block a user