staging:iio: Consolidate adt7310 and adt7410 driver
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 22 Oct 2012 09:42:00 +0000 (10:42 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 31 Oct 2012 10:40:34 +0000 (10:40 +0000)
commit2b0c856ad9571013db8fc369194b7108dff3c18e
tree3eeb31b681966918b952c1ddb6993353f14179e4
parente446f5a8540a845ed92fca4109e67c8f0c76031f
staging:iio: Consolidate adt7310 and adt7410 driver

The adt7310 is the SPI version of the adt7410, so there is no need to have a
separate driver for it. The register map layout is a bit different, i.e. the
addresses of the register differ, but the individual register layouts are
identical. We solve this by adding a small look-up table, which translates
adt7410 register addresses to ad7310 register addresses.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/Kconfig
drivers/staging/iio/adc/Makefile
drivers/staging/iio/adc/adt7310.c [deleted file]
drivers/staging/iio/adc/adt7410.c