mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
ASoC: adau17x1: Add basic DT support for adau17x1
Signed-off-by: Andreas Irestål <andire@axis.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ef32945723
commit
aaf0f3aeeb
@ -44,9 +44,21 @@ static const struct i2c_device_id adau1761_i2c_ids[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adau1761_i2c_ids);
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static const struct of_device_id adau1761_i2c_dt_ids[] = {
|
||||
{ .compatible = "adi,adau1361", },
|
||||
{ .compatible = "adi,adau1461", },
|
||||
{ .compatible = "adi,adau1761", },
|
||||
{ .compatible = "adi,adau1961", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, adau1761_i2c_dt_ids);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver adau1761_i2c_driver = {
|
||||
.driver = {
|
||||
.name = "adau1761",
|
||||
.of_match_table = of_match_ptr(adau1761_i2c_dt_ids),
|
||||
},
|
||||
.probe = adau1761_i2c_probe,
|
||||
.remove = adau1761_i2c_remove,
|
||||
|
@ -61,9 +61,21 @@ static const struct spi_device_id adau1761_spi_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, adau1761_spi_id);
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static const struct of_device_id adau1761_spi_dt_ids[] = {
|
||||
{ .compatible = "adi,adau1361", },
|
||||
{ .compatible = "adi,adau1461", },
|
||||
{ .compatible = "adi,adau1761", },
|
||||
{ .compatible = "adi,adau1961", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, adau1761_spi_dt_ids);
|
||||
#endif
|
||||
|
||||
static struct spi_driver adau1761_spi_driver = {
|
||||
.driver = {
|
||||
.name = "adau1761",
|
||||
.of_match_table = of_match_ptr(adau1761_spi_dt_ids),
|
||||
},
|
||||
.probe = adau1761_spi_probe,
|
||||
.remove = adau1761_spi_remove,
|
||||
|
@ -42,9 +42,19 @@ static const struct i2c_device_id adau1781_i2c_ids[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adau1781_i2c_ids);
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static const struct of_device_id adau1781_i2c_dt_ids[] = {
|
||||
{ .compatible = "adi,adau1381", },
|
||||
{ .compatible = "adi,adau1781", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, adau1781_i2c_dt_ids);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver adau1781_i2c_driver = {
|
||||
.driver = {
|
||||
.name = "adau1781",
|
||||
.of_match_table = of_match_ptr(adau1781_i2c_dt_ids),
|
||||
},
|
||||
.probe = adau1781_i2c_probe,
|
||||
.remove = adau1781_i2c_remove,
|
||||
|
@ -59,9 +59,19 @@ static const struct spi_device_id adau1781_spi_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, adau1781_spi_id);
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static const struct of_device_id adau1781_spi_dt_ids[] = {
|
||||
{ .compatible = "adi,adau1381", },
|
||||
{ .compatible = "adi,adau1781", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, adau1781_spi_dt_ids);
|
||||
#endif
|
||||
|
||||
static struct spi_driver adau1781_spi_driver = {
|
||||
.driver = {
|
||||
.name = "adau1781",
|
||||
.of_match_table = of_match_ptr(adau1781_spi_dt_ids),
|
||||
},
|
||||
.probe = adau1781_spi_probe,
|
||||
.remove = adau1781_spi_remove,
|
||||
|
Loading…
Reference in New Issue
Block a user