1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-13 03:41:54 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0570-ASoC-adau1977-Add-correct-compatible-strings.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

32 lines
960 B
Diff

From cf20ac2d64434c72ae8b57178a03528d6a2c6ceb Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 6 Mar 2023 20:48:14 +0000
Subject: [PATCH] ASoC: adau1977: Add correct compatible strings
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
sound/soc/codecs/adau1977-i2c.c | 10 ++++++++++
1 file changed, 10 insertions(+)
--- a/sound/soc/codecs/adau1977-i2c.c
+++ b/sound/soc/codecs/adau1977-i2c.c
@@ -38,9 +38,19 @@ static const struct i2c_device_id adau19
};
MODULE_DEVICE_TABLE(i2c, adau1977_i2c_ids);
+static const struct of_device_id adau1977_of_ids[] = {
+ { .compatible = "adi,adau1977", },
+ { .compatible = "adi,adau1978", },
+ { .compatible = "adi,adau1979", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, adau1977_of_ids);
+
+
static struct i2c_driver adau1977_i2c_driver = {
.driver = {
.name = "adau1977",
+ .of_match_table = adau1977_of_ids,
},
.probe_new = adau1977_i2c_probe,
.id_table = adau1977_i2c_ids,