iio: accel: adxl313: Fix adxl313_i2c_id[] table
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 25 Jul 2023 17:16:23 +0000 (18:16 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Jul 2023 11:30:39 +0000 (12:30 +0100)
commitf636554c4cd1c644109cc525900a056495b86cc9
tree6fc0703db49cd3864d80397dfb11a8762189ef8b
parent089c1e1132c86c668a19e8cbfab0faffe0220643
iio: accel: adxl313: Fix adxl313_i2c_id[] table

The .driver_data in adxl313_i2c_id[] for adxl312 and adxl314 is
wrong. Fix this issue by adding corresponding adxl31x_chip_info
data.

Reported-by: Jonathan Cameron <jic23@kernel.org>
Closes: https://lore.kernel.org/all/20230722172832.04ad7738@jic23-huawei
Fixes: a7a1c60bc4c9 ("drivers: iio: accel: adxl312 and adxl314 support")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230725171624.331283-2-biju.das.jz@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl313_i2c.c