summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/bmp280.h
diff options
context:
space:
mode:
authorAngel Iglesias <ang.iglesiasg@gmail.com>2023-02-19 19:58:00 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-03-11 15:18:28 +0300
commitc25ea00fefa4e57a63209769fa3e4903791d05af (patch)
tree39c4ef49cc5dc63756c89ec5dc0ccb0f331d999f /drivers/iio/pressure/bmp280.h
parent0b0b772637cd7f35c15830bbb8e8ec66d6c34ddd (diff)
downloadlinux-c25ea00fefa4e57a63209769fa3e4903791d05af.tar.xz
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>
Diffstat (limited to 'drivers/iio/pressure/bmp280.h')
-rw-r--r--drivers/iio/pressure/bmp280.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h
index 387723fd0772..be17104ef0a2 100644
--- a/drivers/iio/pressure/bmp280.h
+++ b/drivers/iio/pressure/bmp280.h
@@ -345,6 +345,7 @@ struct bmp280_chip_info {
int (*read_press)(struct bmp280_data *, int *, int *);
int (*read_humid)(struct bmp280_data *, int *, int *);
int (*read_calib)(struct bmp280_data *);
+ int (*preinit)(struct bmp280_data *);
};
/* Chip infos for each variant */