Skip to content

Commit ce583d5

Browse files
committed
Merge tag 'for-v6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply fixes from Sebastian Reichel: - qcom_battmgr: endianness fixes * tag 'for-v6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: power: supply: qcom_battmgr: fix enable request endianness power: supply: qcom_battmgr: fix battery_id type
2 parents 4ee2216 + 8894b43 commit ce583d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/power/supply/qcom_battmgr.c

Lines changed: 4 additions & 4 deletions
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 {
@@ -1282,9 +1282,9 @@ static void qcom_battmgr_enable_worker(struct work_struct *work)
12821282
{
12831283
struct qcom_battmgr *battmgr = container_of(work, struct qcom_battmgr, enable_work);
12841284
struct qcom_battmgr_enable_request req = {
1285-
.hdr.owner = PMIC_GLINK_OWNER_BATTMGR,
1286-
.hdr.type = PMIC_GLINK_NOTIFY,
1287-
.hdr.opcode = BATTMGR_REQUEST_NOTIFICATION,
1285+
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
1286+
.hdr.type = cpu_to_le32(PMIC_GLINK_NOTIFY),
1287+
.hdr.opcode = cpu_to_le32(BATTMGR_REQUEST_NOTIFICATION),
12881288
};
12891289
int ret;
12901290

0 commit comments

Comments
 (0)