blob: d0b42dd6b8ad9891507fb4d4909546de2cffb261 [file] [log] [blame]
Uwe Kleine-König69548b72019-12-09 21:32:47 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#define LTC2497_ENABLE 0xA0
4#define LTC2497_CONFIG_DEFAULT LTC2497_ENABLE
5#define LTC2497_CONVERSION_TIME_MS 150ULL
6
7struct ltc2497core_driverdata {
8 struct regulator *ref;
9 ktime_t time_prev;
10 u8 addr_prev;
11 int (*result_and_measure)(struct ltc2497core_driverdata *ddata,
12 u8 address, int *val);
13};
14
15int ltc2497core_probe(struct device *dev, struct iio_dev *indio_dev);
16void ltc2497core_remove(struct iio_dev *indio_dev);
17
18MODULE_IMPORT_NS(LTC2497);