summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/mcp3422.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Microchip Technology's MCP3426/7/8 ADCAngelo Compagnucci2014-03-161-5/+28
| | | | | | | | This patch extends previous mcp3422 driver to support missing members of the family, mcp3426/7/8. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* Merge v3.13-rc2 into staging-nextGreg Kroah-Hartman2013-12-021-4/+4
|\ | | | | | | | | | | we want these fixes in here. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * iio: Fix sign extension table in mcp3422 driverPeter Meerwald2013-11-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | the index argument to sign_extend32() gives the bit position (from 0) to the sign bit so e.g. if the measurement has 16-bit resolution, we need to pass 15; a measurement of 0x8000 should be reported as -32768, not 32768 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* | iio: adc: mcp3422: Use devm_iio_device_registerSachin Kamat2013-11-241-8/+1
|/ | | | | | | devm_iio_device_register simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* iio: adc: mcp3422: Include linux/of.h headerSachin Kamat2013-10-181-0/+1
| | | | | | | | 'of_match_ptr' is defined in linux/of.h. Include it explicitly to avoid build breakage in the future. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
* iio: adc: Add driver for Microchip MCP3422/3/4 high resolution ADCAngelo Compagnucci2013-09-071-0/+409
Sysfs access to all channels. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
OpenPOWER on IntegriCloud