Skip to content

Commit

Permalink
ASoc: cs42xx8-i2c.c: add module device table for of
Browse files Browse the repository at this point in the history
When trying to connect the device with the driver through of
it is not working. The of_device_id is defined in cs42xx8.c
but is not correctly included in cs42xx8-i2c.c. Also add the
matching table for of in the i2c file.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
  • Loading branch information
pberginkonsult authored and intel-lab-lkp committed Oct 27, 2022
1 parent 4fe89d0 commit a09fe8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/codecs/cs42xx8-i2c.c
Expand Up @@ -37,6 +37,13 @@ static int cs42xx8_i2c_remove(struct i2c_client *i2c)
return 0;
}

const struct of_device_id cs42xx8_of_match[] = {
{ .compatible = "cirrus,cs42448", .data = &cs42448_data, },
{ .compatible = "cirrus,cs42888", .data = &cs42888_data, },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, cs42xx8_of_match);

static struct i2c_device_id cs42xx8_i2c_id[] = {
{"cs42448", (kernel_ulong_t)&cs42448_data},
{"cs42888", (kernel_ulong_t)&cs42888_data},
Expand Down

0 comments on commit a09fe8d

Please sign in to comment.