Commit 83e416f4 authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman

staging: iio: adc: Replace, rewrite ad7745 from scratch.

The existing ad7745 driver didn't conform with the IIO spec for such devices.
It was way simpler to rewrite the existing driver, than actually fixing it.
Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5bf8ebc5
...@@ -144,7 +144,7 @@ config AD7793 ...@@ -144,7 +144,7 @@ config AD7793
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called AD7793. module will be called AD7793.
config AD7745 config AD7746
tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver"
depends on I2C depends on I2C
help help
......
...@@ -33,7 +33,7 @@ obj-$(CONFIG_AD7150) += ad7150.o ...@@ -33,7 +33,7 @@ obj-$(CONFIG_AD7150) += ad7150.o
obj-$(CONFIG_AD7152) += ad7152.o obj-$(CONFIG_AD7152) += ad7152.o
obj-$(CONFIG_AD7291) += ad7291.o obj-$(CONFIG_AD7291) += ad7291.o
obj-$(CONFIG_AD7314) += ad7314.o obj-$(CONFIG_AD7314) += ad7314.o
obj-$(CONFIG_AD7745) += ad7745.o obj-$(CONFIG_AD7746) += ad7746.o
obj-$(CONFIG_AD7780) += ad7780.o obj-$(CONFIG_AD7780) += ad7780.o
obj-$(CONFIG_AD7793) += ad7793.o obj-$(CONFIG_AD7793) += ad7793.o
obj-$(CONFIG_AD7816) += ad7816.o obj-$(CONFIG_AD7816) += ad7816.o
......
This diff is collapsed.
This diff is collapsed.
/*
* AD7746 capacitive sensor driver supporting AD7745, AD7746 and AD7747
*
* Copyright 2011 Analog Devices Inc.
*
* Licensed under the GPL-2.
*/
#ifndef IIO_CDC_AD7746_H_
#define IIO_CDC_AD7746_H_
/*
* TODO: struct ad7746_platform_data needs to go into include/linux/iio
*/
#define AD7466_EXCLVL_0 0 /* +-VDD/8 */
#define AD7466_EXCLVL_1 1 /* +-VDD/4 */
#define AD7466_EXCLVL_2 2 /* +-VDD * 3/8 */
#define AD7466_EXCLVL_3 3 /* +-VDD/2 */
struct ad7746_platform_data {
unsigned char exclvl; /*Excitation Voltage Level */
bool exca_en; /* enables EXCA pin as the excitation output */
bool exca_inv_en; /* enables /EXCA pin as the excitation output */
bool excb_en; /* enables EXCB pin as the excitation output */
bool excb_inv_en; /* enables /EXCB pin as the excitation output */
};
#endif /* IIO_CDC_AD7746_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment