firmware: scmi: prepare uclass to pass channel reference

Changes SCMI transport operator ::process_msg to pass the SCMI channel
reference provided by caller SCMI protocol device.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
This commit is contained in:
Etienne Carriere
2022-05-31 18:09:19 +02:00
committed by Tom Rini
parent 8bcb1b4898
commit 85dc582892
6 changed files with 14 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
struct udevice;
struct scmi_msg;
struct scmi_channel;
/**
* struct scmi_transport_ops - The functions that a SCMI transport layer must implement.
@@ -18,7 +19,8 @@ struct scmi_agent_ops {
* @dev: SCMI protocol device using the transport
* @msg: SCMI message to be transmitted
*/
int (*process_msg)(struct udevice *dev, struct scmi_msg *msg);
int (*process_msg)(struct udevice *dev, struct scmi_channel *channel,
struct scmi_msg *msg);
};
#endif /* _SCMI_TRANSPORT_UCLASS_H */