firmware: arm_scmi: Refactor scmi_wait_for_message_response
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 18 Jan 2023 12:14:12 +0000 (12:14 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 20 Jan 2023 11:40:36 +0000 (11:40 +0000)
commit07cdfc44f1a40652cbf349d279dd916b13197624
treec2585c915a052957fc216aa1be6b970e9f62107a
parentf21c2b0ba8f3e70e1d5f11842ec1de66aaa35809
firmware: arm_scmi: Refactor scmi_wait_for_message_response

Refactor scmi_wait_for_message_response() to use a internal helper to
carry out its main duties; while doing that make it accept directly an
scmi_desc parameter to interact with the configured transport.

No functional change.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20230118121426.492864-4-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c