summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/arm_scpi.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2017-08-18 16:39:28 +0200
committerSudeep Holla <sudeep.holla@arm.com>2017-08-23 17:36:51 +0200
commit0d30176819c8738b012ec623c7b3db19df818e70 (patch)
treeed2b73d2c42cab9f8be0c07ce7b82e2353368d6f /drivers/firmware/arm_scpi.c
parentLinux v4.13-rc1 (diff)
downloadlinux-0d30176819c8738b012ec623c7b3db19df818e70.tar.xz
linux-0d30176819c8738b012ec623c7b3db19df818e70.zip
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>
Diffstat (limited to 'drivers/firmware/arm_scpi.c')
-rw-r--r--drivers/firmware/arm_scpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index 8043e51de897..ab52f1bcd277 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -357,7 +357,7 @@ struct sensor_value {
} __packed;
struct dev_pstate_set {
- u16 dev_id;
+ __le16 dev_id;
u8 pstate;
} __packed;