[PATCH 3/6] ad525x_dpot: add support for SPI parts
Mike Frysinger <
vapier@...>
2010-05-09 10:15:26 GMT
From: Michael Hennerich <michael.hennerich@...>
Split the bus logic out into separate files so that we can handle I2C and
SPI busses independently. The new SPI bus logic brings in support for a
lot more parts:
AD5160, AD5161, AD5162, AD5165, AD5200, AD5201, AD5203,
AD5204, AD5206, AD5207, AD5231, AD5232, AD5233, AD5235,
AD5260, AD5262, AD5263, AD5290, AD5291, AD5292, AD5293,
AD7376, AD8400, AD8402, AD8403, ADN2850
Signed-off-by: Michael Hennerich <michael.hennerich@...>
Signed-off-by: Mike Frysinger <vapier@...>
---
drivers/misc/Kconfig | 30 ++-
drivers/misc/Makefile | 2 +
drivers/misc/ad525x_dpot-i2c.c | 119 ++++++++
drivers/misc/ad525x_dpot-spi.c | 172 +++++++++++
drivers/misc/ad525x_dpot.c | 628 ++++++++++++++++++++--------------------
drivers/misc/ad525x_dpot.h | 173 +++++++++++
6 files changed, 805 insertions(+), 319 deletions(-)
create mode 100644 drivers/misc/ad525x_dpot-i2c.c
create mode 100644 drivers/misc/ad525x_dpot-spi.c
create mode 100644 drivers/misc/ad525x_dpot.h
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 0d0d625..69e019e 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
<at> <at> -14,11 +14,15 <at> <at> menuconfig MISC_DEVICES
if MISC_DEVICES
(Continue reading)