]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: Add MCP3021 ADC driver
authorXie Xiaobo <X.Xie@freescale.com>
Sun, 25 Mar 2012 23:42:18 +0000 (10:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 25 Mar 2012 23:42:18 +0000 (10:42 +1100)
commite3a9568476a09671a419f7481a3be2bbca25d801
treea580bd3fff0831628bc0d525d975853bbf25a86d
parent1e7cf8577d043f456eea4f685777c58767b07a9b
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]