diff options
| author | 2023-08-18 19:40:32 +0100 | |
|---|---|---|
| committer | 2023-09-11 20:12:41 +0100 | |
| commit | 0f8eaeda7659d02063278c7eb72bbcd2d2819375 (patch) | |
| tree | 920e0569f36faac86d681e8aac7c4004f69fc60b /scripts/Makefile.thinlto | |
| parent | iio: adc: at91_adc: Simplify with dev_err_probe() (diff) | |
iio: accel: mma8452: Convert enum->pointer for data in the ID table
Convert enum->pointer for data in the ID table, so that
device_get_match_data() can do match against OF/ACPI/I2C tables, once i2c
bus type match support added to it.
Replace enum->struct *mma_chip_info for data in the ID table and simplify
mma8452_probe() by replacing device_get_match_data() with
i2c_get_match_data().
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230818184033.335502-2-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
