|| ||Samu Onkalo <firstname.lastname@example.org> |
|| ||email@example.com, firstname.lastname@example.org,
|| ||[RFC PATCH 0/1] Driver for ami305 magnetometer |
|| ||Thu, 12 Nov 2009 09:44:25 +0200|
|| ||Samu Onkalo <email@example.com>|
|| ||Article, Thread
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
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.
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 firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/