diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-09-29 12:16:49 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-09-30 21:00:20 +0200 |
commit | 8894b432548851f705f72ff135d3dcbd442a18d1 (patch) | |
tree | 843e06eb3f3b724f3a43d19edcc53c4c7ffe3aa4 /lib/bsearch.c | |
parent | 383eba9f9a7f4cd639d367ea5daa6df2be392c54 (diff) |
power: supply: qcom_battmgr: fix enable request endianness
Add the missing endianness conversion when sending the enable request so
that the driver will work also on a hypothetical big-endian machine.
This issue was reported by sparse.
Fixes: 29e8142b5623 ("power: supply: Introduce Qualcomm PMIC GLINK power supply")
Cc: stable@vger.kernel.org # 6.3
Cc: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Link: https://lore.kernel.org/r/20230929101649.20206-1-johan+linaro@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'lib/bsearch.c')
0 files changed, 0 insertions, 0 deletions