mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
ASoC: SOF: OF: Avoid reverse module dependency
Similar with commit8a49cd11e6("ASoC: SOF: ACPI: avoid reverse module dependency") we will be having hardware specific drivers that link against a common "helper" framework. sof-of-dev.c becomes a library with the interface defined in the newly created file sof-of-dev.h. This is the final step started with Kconfig simplification in commit7548a391c5("ASoC: SOF: i.MX: simplify Kconfig") Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211215085703.137414-1-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
9e376b14ef
commit
28084f4a0e
17
sound/soc/sof/sof-of-dev.h
Normal file
17
sound/soc/sof/sof-of-dev.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
||||
/*
|
||||
* This file is provided under a dual BSD/GPLv2 license. When using or
|
||||
* redistributing this file, you may do so under either license.
|
||||
*
|
||||
* Copyright 2021 NXP
|
||||
*/
|
||||
|
||||
#ifndef __SOUND_SOC_SOF_OF_H
|
||||
#define __SOUND_SOC_SOF_OF_H
|
||||
|
||||
extern const struct dev_pm_ops sof_of_pm;
|
||||
|
||||
int sof_of_probe(struct platform_device *pdev);
|
||||
int sof_of_remove(struct platform_device *pdev);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user