iio: ak8975 : Add AK8963 compatibility mode support
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 19 Mar 2014 16:56:00 +0000 (16:56 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 22 Mar 2014 12:41:37 +0000 (12:41 +0000)
commit6027c077f62f11818a7645151119f8718862d764
tree26e1650162cb045f4806f06d328cbf05d64a608d
parent239670ef48dfff9cf07675acdb3bb7deee4853e1
iio: ak8975 : Add AK8963 compatibility mode support

AK8963 and AK8975 use same register definitions, except the range
of X,Y,Z values. Added support of 8963 based on i2c_device_id.
Unfortunately there is no way to detect the type via registers,
both device registers return 0x48 as id of chipset.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/Kconfig
drivers/iio/magnetometer/ak8975.c