]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Automatically determine control_data for soc-cache users
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 12 Aug 2010 09:59:15 +0000 (10:59 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 12 Aug 2010 13:02:06 +0000 (14:02 +0100)
commit37fe506bc6690286c884db67e6c62937b4c9862f
tree7556a696372d7e023e482406628c08d4924418ea
parentaad991e1d6943c1067ea7f5e2d1cdc9bf249a88b
ASoC: Automatically determine control_data for soc-cache users

Since the provision of a struct device for the CODEC is now mandatory
we can use container_of() to locate the struct i2c_client and struct
spi_device for relevant devices, removing the need to manually set it
in each driver.

A further patch will automate selection of the control type based on
the bus_type of the struct device, further reducing the amount of
driver code required.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-cache.c