FROMLIST: firmware: arm_scmi: make notify_priv really private
Notification private data is currently accessible via handle->notify_priv; this data was indeed meant to be private to the notification core support and not to be accessible by SCMI drivers: make it private hiding it inside instance descriptor struct scmi_info and accessible only via dedicated helpers. 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: Ic0a1c0610f9726f3ebde388e685ee20343533d33 Signed-off-by: Rishabh Bhatnagar <quic_rishabhb@quicinc.com>
This commit is contained in:

committed by
Todd Kjos

parent
bb35ff40d5
commit
ee250b6df6
@@ -612,8 +612,6 @@ struct scmi_notify_ops {
|
||||
* @devm_put_protocol: devres managed method to release a protocol acquired
|
||||
* with devm_acquire/get_protocol
|
||||
* @notify_ops: pointer to set of notifications related operations
|
||||
* @notify_priv: pointer to private data structure specific to notifications
|
||||
* (for internal use only)
|
||||
*/
|
||||
struct scmi_handle {
|
||||
struct device *dev;
|
||||
@@ -627,7 +625,6 @@ struct scmi_handle {
|
||||
void (*devm_put_protocol)(struct scmi_device *sdev, u8 proto);
|
||||
|
||||
const struct scmi_notify_ops *notify_ops;
|
||||
void *notify_priv;
|
||||
};
|
||||
|
||||
enum scmi_std_protocol {
|
||||
|
Reference in New Issue
Block a user