summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ltc2497.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/ltc2497.h')
-rw-r--r--drivers/iio/adc/ltc2497.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/adc/ltc2497.h b/drivers/iio/adc/ltc2497.h
index e023de0d88c4..781519b52475 100644
--- a/drivers/iio/adc/ltc2497.h
+++ b/drivers/iio/adc/ltc2497.h
@@ -12,6 +12,8 @@ struct ltc2497_chip_info {
struct ltc2497core_driverdata {
struct regulator *ref;
ktime_t time_prev;
+ /* lock to protect against multiple access to the device */
+ struct mutex lock;
const struct ltc2497_chip_info *chip_info;
u8 addr_prev;
int (*result_and_measure)(struct ltc2497core_driverdata *ddata,