Skip to content
Snippets Groups Projects
Commit 0d301768 authored by Sudeep Holla's avatar Sudeep Holla
Browse files

firmware: arm_scpi: fix endianness of dev_id in struct dev_pstate_set


scpi_device_{g,s}et_power_state correctly handles the conversion of
endianness for dev_id using cpu_to_le16. However dev_id is declared
as u16 in struct dev_pstate_set which is incorrect.

This patch fixes the endianness of dev_id in dev_pstate_set structure.

Fixes: 37a441dc ("firmware: arm_scpi: add support for device power state management")
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 5771a8c0
Branches
No related tags found
No related merge requests found
...@@ -357,7 +357,7 @@ struct sensor_value { ...@@ -357,7 +357,7 @@ struct sensor_value {
} __packed; } __packed;
struct dev_pstate_set { struct dev_pstate_set {
u16 dev_id; __le16 dev_id;
u8 pstate; u8 pstate;
} __packed; } __packed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment