ASoC: rt5631: Adding Device Tree compatibility to Realtek's ALC5631/RT5631 codec driver
Signed-off-by: Krishna Mohan Dani <krishna.md@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
86707f7fec
Коммит
189c88ced1
|
@ -1686,10 +1686,18 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5631 = {
|
||||||
|
|
||||||
static const struct i2c_device_id rt5631_i2c_id[] = {
|
static const struct i2c_device_id rt5631_i2c_id[] = {
|
||||||
{ "rt5631", 0 },
|
{ "rt5631", 0 },
|
||||||
|
{ "alc5631", 0 },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, rt5631_i2c_id);
|
MODULE_DEVICE_TABLE(i2c, rt5631_i2c_id);
|
||||||
|
|
||||||
|
static struct of_device_id rt5631_i2c_dt_ids[] = {
|
||||||
|
{ .compatible = "realtek,rt5631"},
|
||||||
|
{ .compatible = "realtek,alc5631"},
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, rt5631_i2c_dt_ids);
|
||||||
|
|
||||||
static const struct regmap_config rt5631_regmap_config = {
|
static const struct regmap_config rt5631_regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 16,
|
.val_bits = 16,
|
||||||
|
@ -1734,6 +1742,7 @@ static struct i2c_driver rt5631_i2c_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rt5631",
|
.name = "rt5631",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = of_match_ptr(rt5631_i2c_dt_ids),
|
||||||
},
|
},
|
||||||
.probe = rt5631_i2c_probe,
|
.probe = rt5631_i2c_probe,
|
||||||
.remove = rt5631_i2c_remove,
|
.remove = rt5631_i2c_remove,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче