Message ID | 20250220112643.3813295-25-cezary.rojewski@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | ASoC: codecs: Update device_id tables for Realtek drivers | expand |
> Follow PCI-based format (10ECxxxx) for ACPI IDs by adding relevant entries to > the existing table. > > While at it, there shall be no comma after the terminator entry and initializing > fields with 0 for statically defined structs is redundant. > > Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> > --- > sound/soc/codecs/rt5682s.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index > ce2e88e066f3..5ad0cc3fab7f 100644 > --- a/sound/soc/codecs/rt5682s.c > +++ b/sound/soc/codecs/rt5682s.c > @@ -3310,13 +3310,14 @@ static void rt5682s_i2c_remove(struct i2c_client > *client) > > static const struct of_device_id rt5682s_of_match[] = { > {.compatible = "realtek,rt5682s"}, > - {}, > + {} > }; > MODULE_DEVICE_TABLE(of, rt5682s_of_match); > > static const struct acpi_device_id rt5682s_acpi_match[] = { > - {"RTL5682", 0,}, > - {}, > + { "RTL5682" }, > + { "10EC5682" }, > + {} The rt5682s and rt5682 are different codec drivers. The rt5682s uses RTL5682 APCI ID and rt5682 uses 10EC5682. > }; > MODULE_DEVICE_TABLE(acpi, rt5682s_acpi_match); > > -- > 2.25.1 >
diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index ce2e88e066f3..5ad0cc3fab7f 100644 --- a/sound/soc/codecs/rt5682s.c +++ b/sound/soc/codecs/rt5682s.c @@ -3310,13 +3310,14 @@ static void rt5682s_i2c_remove(struct i2c_client *client) static const struct of_device_id rt5682s_of_match[] = { {.compatible = "realtek,rt5682s"}, - {}, + {} }; MODULE_DEVICE_TABLE(of, rt5682s_of_match); static const struct acpi_device_id rt5682s_acpi_match[] = { - {"RTL5682", 0,}, - {}, + { "RTL5682" }, + { "10EC5682" }, + {} }; MODULE_DEVICE_TABLE(acpi, rt5682s_acpi_match);
Follow PCI-based format (10ECxxxx) for ACPI IDs by adding relevant entries to the existing table. While at it, there shall be no comma after the terminator entry and initializing fields with 0 for statically defined structs is redundant. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> --- sound/soc/codecs/rt5682s.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)