]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: codecs: aw88261: Add devicetree support
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 9 Jan 2026 15:02:06 +0000 (16:02 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jan 2026 15:05:12 +0000 (15:05 +0000)
Add the compatible "awinic,aw88261" so that module autoloading will work
based on the compatible from devicetree.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://patch.msgid.link/20260109-aw88261-dt-v1-2-45840c7632a3@fairphone.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88261.c

index ceea0c8c60b1619d83eb756eaa87d97a6500e17b..810c90f5e7837f6dad69370fef676f3526b20ec0 100644 (file)
@@ -1269,9 +1269,16 @@ static const struct i2c_device_id aw88261_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);
 
+static const struct of_device_id aw88261_of_table[] = {
+       { .compatible = "awinic,aw88261" },
+       { }
+};
+MODULE_DEVICE_TABLE(of, aw88261_of_table);
+
 static struct i2c_driver aw88261_i2c_driver = {
        .driver = {
                .name = "aw88261",
+               .of_match_table = aw88261_of_table,
        },
        .probe = aw88261_i2c_probe,
        .id_table = aw88261_i2c_id,