From: Samu Onkalo on
This patch provides driver for two sw compatible 3 axis magnetometer chips
(AMI305 / AK8974).
Driver provides coordinates as polled input device.
Chip can provide interrupt when the measurement result is ready, but
this feature is not used. Instead, new measurement is started at polling
event frequency. This method allows more flexible measurement interval.
Activity level at kernel side is about the same in both interrupt and polling
based methods. Furhtermore, this eliminate need to use interrupt line at HW
level.

Chip is powered on when the polled device is opened and powered down when the
device is closed. Axes can be remapped via platform data.

sysfs interface:
selftest - Perform chip specific selftest as specified by manufacturer
active - returns chip power state: ON or OFF
fuzz - adjust input system "fuzziness" parameter

Patch is applicable to Dmitry Torokhov's input tree - next branch.
This tree was selected since patch requires a change to polled
input device which is allready in that tree (open / close methods).

Samu Onkalo (1):
AMI305 magnetometer driver

drivers/misc/Kconfig | 11 +
drivers/misc/Makefile | 1 +
drivers/misc/ami305.c | 644 ++++++++++++++++++++++++++++++++++++++++++++
include/linux/i2c/ami305.h | 22 ++
4 files changed, 678 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/ami305.c
create mode 100644 include/linux/i2c/ami305.h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/