bcm27xx: 6.1: add kernel patches
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0573-ASoC-adau1977-Add-correct-compatible-strings.patch
1 From f341deecd13b96ad61614eeff4b92afa766f7269 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 6 Mar 2023 20:48:14 +0000
4 Subject: [PATCH] ASoC: adau1977: Add correct compatible strings
5
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
7 ---
8 sound/soc/codecs/adau1977-i2c.c | 10 ++++++++++
9 1 file changed, 10 insertions(+)
10
11 --- a/sound/soc/codecs/adau1977-i2c.c
12 +++ b/sound/soc/codecs/adau1977-i2c.c
13 @@ -38,9 +38,19 @@ static const struct i2c_device_id adau19
14 };
15 MODULE_DEVICE_TABLE(i2c, adau1977_i2c_ids);
16
17 +static const struct of_device_id adau1977_of_ids[] = {
18 + { .compatible = "adi,adau1977", },
19 + { .compatible = "adi,adau1978", },
20 + { .compatible = "adi,adau1979", },
21 + { }
22 +};
23 +MODULE_DEVICE_TABLE(of, adau1977_of_ids);
24 +
25 +
26 static struct i2c_driver adau1977_i2c_driver = {
27 .driver = {
28 .name = "adau1977",
29 + .of_match_table = adau1977_of_ids,
30 },
31 .probe_new = adau1977_i2c_probe,
32 .id_table = adau1977_i2c_ids,