]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: arm_scpi: fix endianness of dev_id in struct dev_pstate_set
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 18 Aug 2017 14:39:28 +0000 (15:39 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 23 Aug 2017 15:36:51 +0000 (16:36 +0100)
commit0d30176819c8738b012ec623c7b3db19df818e70
treeed2b73d2c42cab9f8be0c07ce7b82e2353368d6f
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
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>
drivers/firmware/arm_scpi.c