diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-11-12 15:40:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-12 16:56:09 +0100 |
commit | 2cb1e0259f50c7be88eb277c7442fa74a3ce7c57 (patch) | |
tree | 113d403b2b60ab84b1eb035f04a2d8410a88ff44 /sound/soc/codecs/cs42l51.h | |
parent | Linux 3.18-rc1 (diff) | |
download | linux-2cb1e0259f50c7be88eb277c7442fa74a3ce7c57.tar.xz linux-2cb1e0259f50c7be88eb277c7442fa74a3ce7c57.zip |
ASoC: cs42l51: re-hook of_match_table pointer
In commit a1253ef6d3fa ("ASoC: cs42l51: split i2c from codec driver"),
the I2C part of the CS42L51 was moved to a separate file, but the
definition of the of_device_id array was left in the driver file
itself, no longer connected to the platform_driver structure using the
.of_match_table pointer.
This commit exports the of_device_id array in cs42l51, and uses it as
.of_match_able in cs42l51-i2c.c. This solution was suggested by Brian
Austin.
Fixes: a1253ef6d3fa ("ASoC: cs42l51: split i2c from codec driver")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42l51.h')
-rw-r--r-- | sound/soc/codecs/cs42l51.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42l51.h b/sound/soc/codecs/cs42l51.h index 8c55bf384bc6..0ca805492ac4 100644 --- a/sound/soc/codecs/cs42l51.h +++ b/sound/soc/codecs/cs42l51.h @@ -22,6 +22,7 @@ struct device; extern const struct regmap_config cs42l51_regmap; int cs42l51_probe(struct device *dev, struct regmap *regmap); +extern const struct of_device_id cs42l51_of_match[]; #define CS42L51_CHIP_ID 0x1B #define CS42L51_CHIP_REV_A 0x00 |