Skip to content

Commit 57e73a4

Browse files
gwendalcrjic23
authored andcommitted
iio: ak8975: add ak09911 and ak09912 support
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>
1 parent 286f74c commit 57e73a4

File tree

4 files changed

+185
-353
lines changed

4 files changed

+185
-353
lines changed

drivers/iio/magnetometer/Kconfig

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,21 @@
66
menu "Magnetometer sensors"
77

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

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

2019
config AK09911
2120
tristate "Asahi Kasei AK09911 3-axis Compass"
22-
depends on I2C
21+
select AK8975
2322
help
24-
Say yes here to build support for Asahi Kasei AK09911 3-Axis
25-
Magnetometer.
26-
27-
To compile this driver as a module, choose M here: the module
28-
will be called ak09911.
23+
Deprecated: AK09911 is now supported by AK8975 driver.
2924

3025
config MAG3110
3126
tristate "Freescale MAG3110 3-Axis Magnetometer"

drivers/iio/magnetometer/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
# When adding new entries keep the list in alphabetical order
6-
obj-$(CONFIG_AK09911) += ak09911.o
76
obj-$(CONFIG_AK8975) += ak8975.o
87
obj-$(CONFIG_MAG3110) += mag3110.o
98
obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o

drivers/iio/magnetometer/ak09911.c

Lines changed: 0 additions & 326 deletions
This file was deleted.

0 commit comments

Comments
 (0)