diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-08-18 19:40:32 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-09-11 20:12:41 +0100 |
commit | 0f8eaeda7659d02063278c7eb72bbcd2d2819375 (patch) | |
tree | 920e0569f36faac86d681e8aac7c4004f69fc60b /drivers/cpufreq/powernow-k8.h | |
parent | 974a6c27b4d707f75d283805e7fc8aa54686f198 (diff) | |
download | linux-0f8eaeda7659d02063278c7eb72bbcd2d2819375.tar.gz linux-0f8eaeda7659d02063278c7eb72bbcd2d2819375.tar.bz2 linux-0f8eaeda7659d02063278c7eb72bbcd2d2819375.zip |
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 'drivers/cpufreq/powernow-k8.h')
0 files changed, 0 insertions, 0 deletions