Skip to content

Commit 3e91b49

Browse files
committed
sound: soc: codecs: aw88261: Add support for OF
Signed-off-by: Jens Reidel <adrian@mainlining.org>
1 parent b57bff7 commit 3e91b49

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sound/soc/codecs/aw88261.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,13 @@ static int aw88261_i2c_probe(struct i2c_client *i2c)
12781278
return ret;
12791279
}
12801280

1281+
static const struct of_device_id aw88261_of_match[] = {
1282+
{ .compatible = "awinic,aw88261" },
1283+
{ .compatible = "awinic,aw88263s" },
1284+
{ }
1285+
};
1286+
MODULE_DEVICE_TABLE(of, aw88261_of_match);
1287+
12811288
static const struct i2c_device_id aw88261_i2c_id[] = {
12821289
{ AW88261_I2C_NAME },
12831290
{ }
@@ -1287,6 +1294,7 @@ MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);
12871294
static struct i2c_driver aw88261_i2c_driver = {
12881295
.driver = {
12891296
.name = AW88261_I2C_NAME,
1297+
.of_match_table = aw88261_of_match,
12901298
},
12911299
.probe = aw88261_i2c_probe,
12921300
.id_table = aw88261_i2c_id,

0 commit comments

Comments
 (0)