aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-client.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-08-29 23:19:42 +0100
committerMark Brown <broonie@kernel.org>2025-08-29 23:19:42 +0100
commit0b1d93750f1c771c92b26832d5a6bdd6641dee03 (patch)
treeeaf5de7624efaea2069349b2db26f291b0249140 /sound/soc/sof/sof-client.h
parentASoC: SOF: Intel: only detect codecs when HDA DSP (diff)
parentASoC: SOF: sof-client: Introduce sof_client_dev_entry structure (diff)
downloadlinux-0b1d93750f1c771c92b26832d5a6bdd6641dee03.tar.gz
linux-0b1d93750f1c771c92b26832d5a6bdd6641dee03.zip
ASoC: SOF: sof-client: Enforce client access scope
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: Up to this point we had a spoken rule what sof-client can access and what they must not (they cannot use sdev directly), recently there were attempts to break this rule as clients could access sdev via the sof client dev. The series will re-arrange the client device struct to 'hide' the sdev (and the list) from client drivers to prevent abuse.
Diffstat (limited to 'sound/soc/sof/sof-client.h')
-rw-r--r--sound/soc/sof/sof-client.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/sof/sof-client.h b/sound/soc/sof/sof-client.h
index b6ccc2cd69e5..6e9dd77f7c9b 100644
--- a/sound/soc/sof/sof-client.h
+++ b/sound/soc/sof/sof-client.h
@@ -18,19 +18,13 @@ struct sof_ipc4_fw_module;
/**
* struct sof_client_dev - SOF client device
* @auxdev: auxiliary device
- * @sdev: pointer to SOF core device struct
- * @list: item in SOF core client dev list
* @data: device specific data
*/
struct sof_client_dev {
struct auxiliary_device auxdev;
- struct snd_sof_dev *sdev;
- struct list_head list;
void *data;
};
-#define sof_client_dev_to_sof_dev(cdev) ((cdev)->sdev)
-
#define auxiliary_dev_to_sof_client_dev(auxiliary_dev) \
container_of(auxiliary_dev, struct sof_client_dev, auxdev)