FROMLIST: firmware: arm_scmi: remove legacy scmi_voltage_ops protocol interface
Now that all the SCMI driver users have been migrated to the new interface remove the legacy interface and all the transient code. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Bug: 171409184 Link: https://lore.kernel.org/linux-arm-kernel/20210202221555.41167-1-cristian.marussi@arm.com/ Change-Id: I9984ae75fb216fc2080d6351087807a01d76d884 Signed-off-by: Rishabh Bhatnagar <quic_rishabhb@quicinc.com>
This commit is contained in:
committed by
Todd Kjos
parent
f473ac3b66
commit
30da353917
@@ -541,20 +541,6 @@ struct scmi_voltage_proto_ops {
|
||||
s32 *volt_uV);
|
||||
};
|
||||
|
||||
struct scmi_voltage_ops {
|
||||
int (*num_domains_get)(const struct scmi_handle *handle);
|
||||
const struct scmi_voltage_info __must_check *(*info_get)
|
||||
(const struct scmi_handle *handle, u32 domain_id);
|
||||
int (*config_set)(const struct scmi_handle *handle, u32 domain_id,
|
||||
u32 config);
|
||||
int (*config_get)(const struct scmi_handle *handle, u32 domain_id,
|
||||
u32 *config);
|
||||
int (*level_set)(const struct scmi_handle *handle, u32 domain_id,
|
||||
u32 flags, s32 volt_uV);
|
||||
int (*level_get)(const struct scmi_handle *handle, u32 domain_id,
|
||||
s32 *volt_uV);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct scmi_notify_ops - represents notifications' operations provided by
|
||||
* SCMI core
|
||||
@@ -616,7 +602,6 @@ struct scmi_notify_ops {
|
||||
*
|
||||
* @dev: pointer to the SCMI device
|
||||
* @version: pointer to the structure containing SCMI version information
|
||||
* @voltage_ops: pointer to set of voltage protocol operations
|
||||
* @devm_acquire_protocol: devres managed method to get hold of a protocol,
|
||||
* causing its initialization and related resource
|
||||
* accounting
|
||||
@@ -633,7 +618,6 @@ struct scmi_notify_ops {
|
||||
struct scmi_handle {
|
||||
struct device *dev;
|
||||
struct scmi_revision_info *version;
|
||||
const struct scmi_voltage_ops *voltage_ops;
|
||||
|
||||
int __must_check (*devm_acquire_protocol)(struct scmi_device *sdev,
|
||||
u8 proto);
|
||||
|
||||
Reference in New Issue
Block a user