diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-06 19:03:22 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-21 19:33:05 +0000 |
commit | 219def44752738638a13848fb04ecb388ed03507 (patch) | |
tree | 4b2b5e8db262de94a4988e981080e701dbf15e9c /drivers/staging/iio/adc/ad7280a.h | |
parent | staging:iio:adc:ad7280a: Use a local dev pointer to avoid &spi->dev (diff) | |
download | linux-dev-219def44752738638a13848fb04ecb388ed03507.tar.xz linux-dev-219def44752738638a13848fb04ecb388ed03507.zip |
staging:iio:adc:ad7280a: Use device properties to replace platform data.
Convert all the device specific info that was previously in platform data
over to generic firmware query interfaces.
dt-bindings to follow shortly.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20220206190328.333093-15-jic23@kernel.org
Diffstat (limited to 'drivers/staging/iio/adc/ad7280a.h')
-rw-r--r-- | drivers/staging/iio/adc/ad7280a.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/staging/iio/adc/ad7280a.h b/drivers/staging/iio/adc/ad7280a.h deleted file mode 100644 index 99297789a46d..000000000000 --- a/drivers/staging/iio/adc/ad7280a.h +++ /dev/null @@ -1,31 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * AD7280A Lithium Ion Battery Monitoring System - * - * Copyright 2011 Analog Devices Inc. - */ - -#ifndef IIO_ADC_AD7280_H_ -#define IIO_ADC_AD7280_H_ - -/* - * TODO: struct ad7280_platform_data needs to go into include/linux/iio - */ - -#define AD7280A_ACQ_TIME_400ns 0 -#define AD7280A_ACQ_TIME_800ns 1 -#define AD7280A_ACQ_TIME_1200ns 2 -#define AD7280A_ACQ_TIME_1600ns 3 - -#define AD7280A_ALERT_REMOVE_VIN5 BIT(2) -#define AD7280A_ALERT_REMOVE_VIN4_VIN5 BIT(3) -#define AD7280A_ALERT_REMOVE_AUX5 BIT(0) -#define AD7280A_ALERT_REMOVE_AUX4_AUX5 BIT(1) - -struct ad7280_platform_data { - unsigned int acquisition_time; - unsigned int chain_last_alert_ignore; - bool thermistor_term_en; -}; - -#endif /* IIO_ADC_AD7280_H_ */ |