From: Lars-Peter Clausen Date: Mon, 22 Oct 2012 09:42:00 +0000 (+0100) Subject: staging:iio: Consolidate adt7310 and adt7410 driver X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~668^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b0c856ad9571013db8fc369194b7108dff3c18e;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed