Skip to content
Unverified Commit e5afc867 authored by Peter Bergin's avatar Peter Bergin Committed by Mark Brown
Browse files

ASoC: cs42xx8-i2c.c: add module device table for of



When trying to connect the device with the driver through
device-tree it is not working. The of_device_id is defined in
cs42xx8.c but is not correctly included in cs42xx8-i2c.c.

Move of_device_id table to cs42xx8-i2c.c. Get cs42xx8_driver_data
in cs42xx8_i2c_probe() and pass as argument to cs42xx8_probe(). Move
error check if no driver data found to cs42xx8_i2c_probe().

Signed-off-by: default avatarPeter Bergin <peter@berginkonsult.se>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221031203723.168177-1-peter@berginkonsult.se
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f8fbf0dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment