diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2022-12-22 18:50:47 +0000 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-01-19 09:49:54 +0000 |
commit | 2c3e674465e73e2f7eb52c39dc5c5e97e78e68ea (patch) | |
tree | 7a795053d0208a3685c61071ccf51a41accc0907 /include/linux/scmi_protocol.h | |
parent | 971fc0665f1361f23251e4d85fac4aed1b683505 (diff) | |
download | lwn-2c3e674465e73e2f7eb52c39dc5c5e97e78e68ea.tar.gz lwn-2c3e674465e73e2f7eb52c39dc5c5e97e78e68ea.zip |
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>
Diffstat (limited to 'include/linux/scmi_protocol.h')
-rw-r--r-- | include/linux/scmi_protocol.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index 4f765bc788ff..0ce5746a4470 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -804,11 +804,6 @@ struct scmi_device { #define to_scmi_dev(d) container_of(d, struct scmi_device, dev) -struct scmi_device * -scmi_device_create(struct device_node *np, struct device *parent, int protocol, - const char *name); -void scmi_device_destroy(struct scmi_device *scmi_dev); - struct scmi_device_id { u8 protocol_id; const char *name; |