iio: pressure: bmp280: Add preinit callback
authorAngel Iglesias <ang.iglesiasg@gmail.com>
Sun, 19 Feb 2023 16:58:00 +0000 (17:58 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Mar 2023 12:18:28 +0000 (12:18 +0000)
commitc25ea00fefa4e57a63209769fa3e4903791d05af
tree39c4ef49cc5dc63756c89ec5dc0ccb0f331d999f
parent0b0b772637cd7f35c15830bbb8e8ec66d6c34ddd
iio: pressure: bmp280: Add preinit callback

Adds preinit callback to execute operations on probe before applying
initial configuration.

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