iio: ak8975: add definition structure per compass type
authorGwendal Grignou <gwendal@chromium.org>
Fri, 21 Nov 2014 18:45:48 +0000 (10:45 -0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:25:14 +0000 (12:25 +0000)
commit286f74c2533ac44419819bb3c885ab9f6291d2c3
tree182e483d9a23e7ff057a4a914052e749ce40d4f4
parent71222bf5412c78d96bf73d09475d3077ce0789f8
iio: ak8975: add definition structure per compass type

For each type of compass supported (AK8975 and AK8963),
add a definition structure for register masks, important registers,
raw data interpretation.
This change will make integrating new type of devices easier.

Remove i2c register cache. It is only used for one single register.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c