firmware: arm_scmi: Improve checks in the info_get operations
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 17 Aug 2022 17:27:27 +0000 (18:27 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 22 Aug 2022 17:01:45 +0000 (18:01 +0100)
commit1ecb7d27b1af6705e9a4e94415b4d8cc8cf2fbfb
tree571408f5a8bc6befab7993c83177e7bcaee2a020
parent2e42b1652df00daf7000011ec9917f2eda534190
firmware: arm_scmi: Improve checks in the info_get operations

SCMI protocols abstract and expose a number of protocol specific
resources like clocks, sensors and so on. Information about such
specific domain resources are generally exposed via an `info_get`
protocol operation.

Improve the sanity check on these operations where needed.

Link: https://lore.kernel.org/r/20220817172731.1185305-3-cristian.marussi@arm.com
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/clock.c
drivers/firmware/arm_scmi/sensors.c
include/linux/scmi_protocol.h