iio: imu: inv_mpu6050: early init of chip_config for use at setup
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Wed, 19 Feb 2020 14:39:50 +0000 (15:39 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:37 +0000 (17:28 +0000)
commit5621a63a017f665225b14ecd728c36e63ada710b
tree6ce3f6d7cd23c2fb1ce5ef1420fb78138b2fc892
parent3c1024aa99c3210ddddf5f2fefd99dddfc5c887c
iio: imu: inv_mpu6050: early init of chip_config for use at setup

Init chip_config early and use its values for initial setup.
More coherent, prevent possible mistakes.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h