mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
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: 37a441dcd5f4 ("firmware: arm_scpi: add support for device power state management") Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
parent
5771a8c088
commit
0d30176819
@ -357,7 +357,7 @@ struct sensor_value {
|
||||
} __packed;
|
||||
|
||||
struct dev_pstate_set {
|
||||
u16 dev_id;
|
||||
__le16 dev_id;
|
||||
u8 pstate;
|
||||
} __packed;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user