Skip to content

Commit

Permalink
iio: ak8975: add ak09911 and ak09912 support
Browse files Browse the repository at this point in the history
Add 2 new definition entries to support ak0991x compass.
Add a more advanced function to check we are dealing with the
expected device.
Remove standalone driver for ak09911.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Gwendal Grignou authored and Jonathan Cameron committed Dec 12, 2014
1 parent 286f74c commit 57e73a4
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 353 deletions.
15 changes: 5 additions & 10 deletions drivers/iio/magnetometer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,21 @@
menu "Magnetometer sensors"

config AK8975
tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
tristate "Asahi Kasei AK 3-Axis Magnetometer"
depends on I2C
depends on GPIOLIB
help
Say yes here to build support for Asahi Kasei AK8975 3-Axis
Magnetometer. This driver can also support AK8963, if i2c
device name is identified as ak8963.
Say yes here to build support for Asahi Kasei AK8975, AK8963,
AK09911 or AK09912 3-Axis Magnetometer.

To compile this driver as a module, choose M here: the module
will be called ak8975.

config AK09911
tristate "Asahi Kasei AK09911 3-axis Compass"
depends on I2C
select AK8975
help
Say yes here to build support for Asahi Kasei AK09911 3-Axis
Magnetometer.

To compile this driver as a module, choose M here: the module
will be called ak09911.
Deprecated: AK09911 is now supported by AK8975 driver.

config MAG3110
tristate "Freescale MAG3110 3-Axis Magnetometer"
Expand Down
1 change: 0 additions & 1 deletion drivers/iio/magnetometer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AK09911) += ak09911.o
obj-$(CONFIG_AK8975) += ak8975.o
obj-$(CONFIG_MAG3110) += mag3110.o
obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o
Expand Down
326 changes: 0 additions & 326 deletions drivers/iio/magnetometer/ak09911.c

This file was deleted.

Loading

0 comments on commit 57e73a4

Please sign in to comment.