diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-09-03 12:55:46 +0100 |
---|---|---|
committer | Jonathan Cameron <jonathan.cameron@huawei.com> | 2023-09-12 10:42:04 +0100 |
commit | 18bdc686c1519e067dc80ec0015da52e2bd628b9 (patch) | |
tree | ed44de845a02ee42a08a621c061e706d863b5494 /certs/blacklist.h | |
parent | 002d546fff4f83648903eada2b6226d314374fdb (diff) | |
download | linux-stable-18bdc686c1519e067dc80ec0015da52e2bd628b9.tar.gz linux-stable-18bdc686c1519e067dc80ec0015da52e2bd628b9.tar.bz2 linux-stable-18bdc686c1519e067dc80ec0015da52e2bd628b9.zip |
iio: dac: mcp4725: Use i2c_get_match_data()
Add struct mcp4725_chip_info with chan_spec and chip_id variable.
After this simplify probe() by replacing device_get_match_data() and id
lookup for retrieving match data by i2c_get_match_data() by converting
enum->pointer for data in the match table.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230903115548.59306-3-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'certs/blacklist.h')
0 files changed, 0 insertions, 0 deletions