]> git.dujemihanovic.xyz Git - u-boot.git/commit
scmi: refactor the code to hide a channel from devices
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 11 Oct 2023 10:06:54 +0000 (19:06 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 13 Oct 2023 20:59:23 +0000 (16:59 -0400)
commitc6230cd8427c906baa52dbff5b95027ef58e6048
tree3a1ca7d9de802439e9d702ebdad90066f0f8a173
parentab9fbac81670478feccd439a5d84a67bd14d581d
scmi: refactor the code to hide a channel from devices

The commit 85dc58289238 ("firmware: scmi: prepare uclass to pass channel
reference") added an explicit parameter, channel, but it seems to make
the code complex.

Hiding this parameter will allow for adding a generic (protocol-agnostic)
helper function, i.e. for PROTOCOL_VERSION, in a later patch.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
drivers/clk/clk_scmi.c
drivers/firmware/scmi/scmi_agent-uclass.c
drivers/power/regulator/scmi_regulator.c
drivers/reset/reset-scmi.c
include/scmi_agent.h