mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 20:05:39 +00:00
ASoC: cs35l56: Add an ACPI match table
[ Upstream commit e8500a7027
]
An ACPI ID has been allocated for CS35L56 ASoC devices so that they can
be instantiated from ACPI Device entries.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230817112712.16637-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3f8fb078f8
commit
3e7b0cacdc
2 changed files with 18 additions and 0 deletions
|
@ -62,10 +62,19 @@ static const struct i2c_device_id cs35l56_id_i2c[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(i2c, cs35l56_id_i2c);
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id cs35l56_asoc_acpi_match[] = {
|
||||
{ "CSC355C", 0 },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, cs35l56_asoc_acpi_match);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver cs35l56_i2c_driver = {
|
||||
.driver = {
|
||||
.name = "cs35l56",
|
||||
.pm = &cs35l56_pm_ops_i2c_spi,
|
||||
.acpi_match_table = ACPI_PTR(cs35l56_asoc_acpi_match),
|
||||
},
|
||||
.id_table = cs35l56_id_i2c,
|
||||
.probe_new = cs35l56_i2c_probe,
|
||||
|
|
|
@ -59,10 +59,19 @@ static const struct spi_device_id cs35l56_id_spi[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(spi, cs35l56_id_spi);
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id cs35l56_asoc_acpi_match[] = {
|
||||
{ "CSC355C", 0 },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, cs35l56_asoc_acpi_match);
|
||||
#endif
|
||||
|
||||
static struct spi_driver cs35l56_spi_driver = {
|
||||
.driver = {
|
||||
.name = "cs35l56",
|
||||
.pm = &cs35l56_pm_ops_i2c_spi,
|
||||
.acpi_match_table = ACPI_PTR(cs35l56_asoc_acpi_match),
|
||||
},
|
||||
.id_table = cs35l56_id_spi,
|
||||
.probe = cs35l56_spi_probe,
|
||||
|
|
Loading…
Reference in a new issue