hwmon: Add MCP3021 ADC driver
authorXie Xiaobo <X.Xie@freescale.com>
Fri, 23 Mar 2012 09:02:20 +0000 (10:02 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 23 Mar 2012 09:02:20 +0000 (10:02 +0100)
commit5510e62a66bad22b104d5d854445523d7f5754f7
treea580bd3fff0831628bc0d525d975853bbf25a86d
parent0c2732152a5813a870d0b96f0844f4dfe1436519
hwmon: Add MCP3021 ADC driver

Add I2C driver for MCP3021 that is an ADC chip from Microchip.
The MCP3021 is a successive approximation A/D converter (ADC)
with 10-bit resolution.
The driver export the value of Vin to sysfs, the voltage unit is
mV. Through the sysfs interface, lm-sensors tool can also display
Vin voltage.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Documentation/hwmon/mcp3021 [new file with mode: 0644]
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/mcp3021.c [new file with mode: 0644]