aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-client.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2025-08-29 13:25:09 +0300
committerMark Brown <broonie@kernel.org>2025-08-29 13:34:25 +0200
commit850c5dfb17b381f30c4052a68c43da5abc678e74 (patch)
tree5cb3eed79dec6649485ad549907ced9e67c713ae /sound/soc/sof/sof-client.h
parentLinux 6.17-rc3 (diff)
downloadlinux-850c5dfb17b381f30c4052a68c43da5abc678e74.tar.gz
linux-850c5dfb17b381f30c4052a68c43da5abc678e74.zip
ASoC: SOF: sof-client: Convert sof_client_dev_to_sof_dev into function
Remove the sof_client_dev_to_sof_dev() from the header file and add it as a function in sof-client.c to avoid it's use by client drivers. At the same time mark the sdev and list of sof_client_dev as restricted fro core use only. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Message-ID: <20250829102510.15159-2-peter.ujfalusi@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-client.h')
-rw-r--r--sound/soc/sof/sof-client.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/sof/sof-client.h b/sound/soc/sof/sof-client.h
index b6ccc2cd69e5..8b267b0b9ff1 100644
--- a/sound/soc/sof/sof-client.h
+++ b/sound/soc/sof/sof-client.h
@@ -18,8 +18,8 @@ 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
+ * @sdev: pointer to SOF core device struct, resticted for core use only
+ * @list: item in SOF core client dev list, resticted for core use only
* @data: device specific data
*/
struct sof_client_dev {
@@ -29,8 +29,6 @@ struct sof_client_dev {
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)