firmware: arm_scmi: Refactor device create/destroy helpers
authorCristian Marussi <cristian.marussi@arm.com>
Thu, 22 Dec 2022 18:50:47 +0000 (18:50 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 19 Jan 2023 09:49:54 +0000 (09:49 +0000)
commit2c3e674465e73e2f7eb52c39dc5c5e97e78e68ea
tree7a795053d0208a3685c61071ccf51a41accc0907
parent971fc0665f1361f23251e4d85fac4aed1b683505
firmware: arm_scmi: Refactor device create/destroy helpers

Refactor SCMI device create/destroy helpers: it is now possible to ask
for the creation of all the currently requested devices for a whole
protocol, not only for the creation of a single well-defined device.

While at that, re-instate uniqueness checks on the creation of SCMI
SystemPower devices.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20221222185049.737625-8-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/bus.c
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c
include/linux/scmi_protocol.h