iio: pressure: bmp280: Make read calibration callback optional
authorAngel Iglesias <ang.iglesiasg@gmail.com>
Sun, 19 Feb 2023 16:58:01 +0000 (17:58 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Mar 2023 12:18:28 +0000 (12:18 +0000)
commit4d545f9649253a7defda89b44a6a2a2b1b377d9d
treee0823ced8d6401003b82bd82f716eb4cded81fe2
parentc25ea00fefa4e57a63209769fa3e4903791d05af
iio: pressure: bmp280: Make read calibration callback optional

Newer models do not require read the calibration parameters and apply the
compensation algorithms in the sensor.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/bb1b95ab3f4e71d3c76543370325c5c9aaa07add.1676823250.git.ang.iglesiasg@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c