Skip to contentSkip to conversation

Add mcp3422 kernel driver

PATCH New Angelo Compagnucci 1 participant 1 message Aug 14, 2013 IIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add mcp3422 kernel driver

I'm really sorry for the previous emails, I accidentally splitted the patch from the cover letter.

This patch add support for Microchip MCP3422/3/4 high resolution adc.

http://ww1.microchip.com/downloads/en/devicedoc/22088b.pdf

This review maintain the correct alphabetic order in Makefile and Kconfig and fixes some minor codestyle issues.
I' will be grateful to anyone who wants to review it.

Thank you!

---
 drivers/iio/adc/Kconfig   |   10 ++
 drivers/iio/adc/Makefile  |    1 +
 drivers/iio/adc/mcp3422.c |  400 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 411 insertions(+)
 create mode 100644 drivers/iio/adc/mcp3422.c
drivers/iio/adc/Kconfig +10 -0
index 93129ec..372667c 100644
@@ -143,6 +143,16 @@ config MCP320X
 	  This driver can also be built as a module. If so, the module will be
 	  called mcp320x.
 
+config MCP3422
+	tristate "Microchip Technology MCP3422/3/4 driver"
+	depends on I2C
+	help
+	  Say yes here to build support for Microchip Technology's MCP3422,
+	  MCP3423 or MCP3424 analog to digital converters.
+
+	  This driver can also be built as a module. If so, the module will be
+	  called mcp3422.
+
 config TI_ADC081C
 	tristate "Texas Instruments ADC081C021/027"
 	depends on I2C
drivers/iio/adc/Makefile +1 -0
index 8f475d3..bae9f67 100644
@@ -15,6 +15,7 @@ obj-$(CONFIG_EXYNOS_ADC) += exynos_adc.o
 obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
 obj-$(CONFIG_MAX1363) += max1363.o
 obj-$(CONFIG_MCP320X) += mcp320x.o
+obj-$(CONFIG_MCP3422) += mcp3422.o
 obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
 obj-$(CONFIG_TI_AM335X_ADC) += ti_am335x_adc.o
 obj-$(CONFIG_VIPERBOARD_ADC) += viperboard_adc.o
drivers/iio/adc/mcp3422.c new file +400 -0

400 lines not on this page · raw message

Signature · 1 line
1.7.9.5