Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/firmware/arm_scpi.c
··· 357 357 } __packed; 358 358 359 359 struct dev_pstate_set { 360 - u16 dev_id; 360 + __le16 dev_id; 361 361 u8 pstate; 362 362 } __packed; 363 363