提交 47035934 编写于 作者: P Pierre-Louis Bossart 提交者: Greg Kroah-Hartman

soundwire: fix regmap dependencies and align with other serial links

[ Upstream commit 8676b3ca4673517650fd509d7fa586aff87b3c28 ]

The existing code has a mixed select/depend usage which makes no sense.

config SOUNDWIRE_BUS
       tristate
       select REGMAP_SOUNDWIRE

config REGMAP_SOUNDWIRE
        tristate
        depends on SOUNDWIRE_BUS

Let's remove one layer of Kconfig definitions and align with the
solutions used by all other serial links.
Signed-off-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190718230215.18675-1-pierre-louis.bossart@linux.intel.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 322753c7
...@@ -44,7 +44,7 @@ config REGMAP_IRQ ...@@ -44,7 +44,7 @@ config REGMAP_IRQ
config REGMAP_SOUNDWIRE config REGMAP_SOUNDWIRE
tristate tristate
depends on SOUNDWIRE_BUS depends on SOUNDWIRE
config REGMAP_SCCB config REGMAP_SCCB
tristate tristate
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
menuconfig SOUNDWIRE menuconfig SOUNDWIRE
bool "SoundWire support" tristate "SoundWire support"
help help
SoundWire is a 2-Pin interface with data and clock line ratified SoundWire is a 2-Pin interface with data and clock line ratified
by the MIPI Alliance. SoundWire is used for transporting data by the MIPI Alliance. SoundWire is used for transporting data
...@@ -16,17 +16,12 @@ if SOUNDWIRE ...@@ -16,17 +16,12 @@ if SOUNDWIRE
comment "SoundWire Devices" comment "SoundWire Devices"
config SOUNDWIRE_BUS
tristate
select REGMAP_SOUNDWIRE
config SOUNDWIRE_CADENCE config SOUNDWIRE_CADENCE
tristate tristate
config SOUNDWIRE_INTEL config SOUNDWIRE_INTEL
tristate "Intel SoundWire Master driver" tristate "Intel SoundWire Master driver"
select SOUNDWIRE_CADENCE select SOUNDWIRE_CADENCE
select SOUNDWIRE_BUS
depends on X86 && ACPI && SND_SOC depends on X86 && ACPI && SND_SOC
---help--- ---help---
SoundWire Intel Master driver. SoundWire Intel Master driver.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#Bus Objs #Bus Objs
soundwire-bus-objs := bus_type.o bus.o slave.o mipi_disco.o stream.o soundwire-bus-objs := bus_type.o bus.o slave.o mipi_disco.o stream.o
obj-$(CONFIG_SOUNDWIRE_BUS) += soundwire-bus.o obj-$(CONFIG_SOUNDWIRE) += soundwire-bus.o
#Cadence Objs #Cadence Objs
soundwire-cadence-objs := cadence_master.o soundwire-cadence-objs := cadence_master.o
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册