iio: accel: bma180: Convert enum->pointer for data in the match table
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 12 Aug 2023 14:10:44 +0000 (15:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Sep 2023 19:12:42 +0000 (20:12 +0100)
commitfe11e389117a6d98a8a5c894f69975877c612d67
tree6ba5210c12dc4fb979b57919dec5ef6539da017a
parent9f6001e390927aa3173cfd4c7d325b8f1d93ccf8
iio: accel: bma180: Convert enum->pointer for data in the match table

Convert enum->pointer for data in the match 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 *bma180_part_info for data in the match table and
simplify bma180_probe().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230812141044.151520-1-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma180.c