linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Support all AKM compass in a single driver
@ 2014-11-21 18:45 Gwendal Grignou
  2014-11-21 18:45 ` [PATCH v4 1/3] iio: ak8975: minor fixes Gwendal Grignou
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Gwendal Grignou @ 2014-11-21 18:45 UTC (permalink / raw)
  To: srinivas.pandruvada, jic23, knaack.h; +Cc: linux-iio, Gwendal Grignou

Currently, 2 drivers are used for supporting AKM compasses:
- ak8975 and ak8963 in ak875.c: these compasses support DRDY line and interrupt.
- ak09911 in ak0911.c: this compass has a new register map and does not support DRDY line.

A newer compass, ak09912 has the same register map as ak09911 but the same functionality as
ak8975. By adding support to ak09912 into ak8975, we can remove the driver specific to ak09911.


Gwendal Grignou (3):
  iio: ak8975: minor fixes
  iio: ak8975: add definition structure per compass type
  iio: ak8975: add ak09911 and ak09912 support

 drivers/iio/magnetometer/Kconfig   |  15 +-
 drivers/iio/magnetometer/Makefile  |   1 -
 drivers/iio/magnetometer/ak09911.c | 326 ------------------------
 drivers/iio/magnetometer/ak8975.c  | 501 +++++++++++++++++++++++++++----------
 4 files changed, 378 insertions(+), 465 deletions(-)
 delete mode 100644 drivers/iio/magnetometer/ak09911.c

Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
-- 
2.1.0.rc2.206.gedb03e5

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-12-12 12:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-21 18:45 [PATCH v4 0/3] Support all AKM compass in a single driver Gwendal Grignou
2014-11-21 18:45 ` [PATCH v4 1/3] iio: ak8975: minor fixes Gwendal Grignou
2014-11-22 11:28   ` Jonathan Cameron
2014-11-21 18:45 ` [PATCH v4 2/3] iio: ak8975: add definition structure per compass type Gwendal Grignou
2014-11-24  8:43   ` Gwendal Grignou
2014-12-04 22:20     ` Hartmut Knaack
2014-11-21 18:45 ` [PATCH v4 3/3] iio: ak8975: add ak09911 and ak09912 support Gwendal Grignou
2014-11-22 11:37   ` Jonathan Cameron
2014-11-24  8:44     ` Gwendal Grignou
2014-12-04 22:21       ` Hartmut Knaack
2014-12-12 12:23   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).