linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] iio: accel: add support for Memsic MXC4005
@ 2015-08-20 14:37 Teodora Baluta
  2015-08-20 14:37 ` [PATCH v3 1/3] iio: accel: add support for mxc4005 accelerometer Teodora Baluta
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Teodora Baluta @ 2015-08-20 14:37 UTC (permalink / raw)
  To: jic23
  Cc: knaack.h, lars, pmeerw, daniel.baluta, teodora.baluta, linux-iio,
	linux-kernel

This patch set adds support for Memsic MXC4005XC 3-axis accelerometer
sensor. The first patch adds basic support for the accelerometer, with
raw readings, the second patch adds support for buffer mode and the last
one adds the data ready trigger.

---
Changes since v1:
- fixes for the comments (coding style, proper buffer length,
  available_scan_masks)
- remove unnecessary locking for regmap operations since regmap has an
  internal locking mechanism
- keep the mutex for set_trigger_state operation to protect the state
  variable trigger_enabled

Changes since v2:
 - use the MXC4005_REGMAP_NAME for regmap_config instead of REGMAP_DRV_NAME
 - replace struct i2c_client *client with struct device *dev
 - remove redundant REGCACHE_NONE option from regmap_config
 - other small style fixes
 - fix buffer size
 - remove read interrupt source register
 - remove the thread handler since we only have one interrupt
 - make irq->client > 0 since IRQ 0 is not valid
 - rework the irq handler by adding try_to_reenable callback
 - use iio_pollfunc_store_time for timestamps


Teodora Baluta (3):
  iio: accel: add support for mxc4005 accelerometer
  iio: mxc4005: add triggered buffer mode for mxc4005
  iio: mxc4005: add data ready trigger for mxc4005

 drivers/iio/accel/Kconfig   |  13 +
 drivers/iio/accel/Makefile  |   2 +
 drivers/iio/accel/mxc4005.c | 567 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 582 insertions(+)
 create mode 100644 drivers/iio/accel/mxc4005.c

-- 
1.9.1


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

end of thread, other threads:[~2015-08-31 16:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 14:37 [PATCH v3 0/3] iio: accel: add support for Memsic MXC4005 Teodora Baluta
2015-08-20 14:37 ` [PATCH v3 1/3] iio: accel: add support for mxc4005 accelerometer Teodora Baluta
2015-08-31 16:31   ` Jonathan Cameron
2015-08-20 14:37 ` [PATCH v3 2/3] iio: mxc4005: add triggered buffer mode for mxc4005 Teodora Baluta
2015-08-31 16:36   ` Jonathan Cameron
2015-08-20 14:37 ` [PATCH v3 3/3] iio: mxc4005: add data ready trigger " Teodora Baluta
2015-08-31 16:41   ` 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).