diff options
author | 2025-03-04 14:43:55 +0000 | |
---|---|---|
committer | 2025-03-04 14:43:55 +0000 | |
commit | 24056de9976dfc33801d2574c1672d91f840277a (patch) | |
tree | 0da6d173d31c5b5617925f5c03095ab1ca599538 /sound/soc/codecs/rt5660.c | |
parent | ASoC: use inclusive language for (diff) | |
parent | ASoC: codecs: rt5677: Update definition of device_id tables (diff) | |
download | wireguard-linux-24056de9976dfc33801d2574c1672d91f840277a.tar.xz wireguard-linux-24056de9976dfc33801d2574c1672d91f840277a.zip |
ASoC: codecs: Update device_id tables for Realtek
Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:
The series aims to streamline the formatting for ACPI IDs so that a
single pattern can be used to identify the device.
Work implicitly suggested by Andy Shevchenko - reading and learning from
number of his reviews on the Linux mailing lists.
Several formats do exists, however, after technical discussion PCI-based
format has been selected as the recommended one. For Realtek devices, it
is going to be 10ECxxxx where 10EC unambiguously identifies Realtek
company whereas the following 4 hexes specify the PART_ID i.e.: the
device.
While at it, there shall be no comma after the terminator entry and
initializing fields with 0 for statically defined structs is redundant.
Diffstat (limited to 'sound/soc/codecs/rt5660.c')
-rw-r--r-- | sound/soc/codecs/rt5660.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c index e335fec9fc56..82b92e83be4c 100644 --- a/sound/soc/codecs/rt5660.c +++ b/sound/soc/codecs/rt5660.c @@ -1232,16 +1232,16 @@ MODULE_DEVICE_TABLE(i2c, rt5660_i2c_id); #ifdef CONFIG_OF static const struct of_device_id rt5660_of_match[] = { { .compatible = "realtek,rt5660", }, - {}, + { } }; MODULE_DEVICE_TABLE(of, rt5660_of_match); #endif #ifdef CONFIG_ACPI static const struct acpi_device_id rt5660_acpi_match[] = { - { "10EC5660", 0 }, - { "10EC3277", 0 }, - { }, + { "10EC3277" }, + { "10EC5660" }, + { } }; MODULE_DEVICE_TABLE(acpi, rt5660_acpi_match); #endif |