firmware: arm_scmi: Fix type error in sensor protocol
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 15 Nov 2021 15:40:43 +0000 (15:40 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 17 Nov 2021 11:24:50 +0000 (11:24 +0000)
commitbd074e5039ee16d71833a67337e2f6bf5d106b3a
treeb5865ce14cc75efa143a8816679bfde097dffe45
parent1446fc6c678e8d8b31606a4b877abe205f344b38
firmware: arm_scmi: Fix type error in sensor protocol

Fix incorrect type error reported by sparse as:

drivers/firmware/arm_scmi/sensors.c:640:28: warning: incorrect type in argument 1 (different base types)
drivers/firmware/arm_scmi/sensors.c:640:28: expected unsigned int [usertype] val
drivers/firmware/arm_scmi/sensors.c:640:28: got restricted __le32 [usertype]

Link: https://lore.kernel.org/r/20211115154043.49284-2-cristian.marussi@arm.com
Fixes: 7b83c5f410889 ("firmware: arm_scmi: Add SCMI v3.0 sensor configuration support")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/sensors.c