linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] iio: accel: adxl345: add calibration offset and sampling frequency support
@ 2018-06-21 15:39 Akinobu Mita
  2018-06-21 15:39 ` [PATCH v3 1/4] iio: accel: adxl345: add link to datasheet Akinobu Mita
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Akinobu Mita @ 2018-06-21 15:39 UTC (permalink / raw)
  To: linux-iio
  Cc: Akinobu Mita, Eva Rachel Retuya, Andy Shevchenko,
	Jonathan Cameron

This patchset adds calibration offset and sampling frequency support for
adxl345 driver with some preparatory changes.

* v3 (Suggested by Andy Shevchenko)
- Define ADXL345_REG_DATA_AXIS(si) for cleaner register access
- Define ADXL345_REG_OSF_AXIS(si) for cleaner register access
- Calculate sampling frequency at runtime instead of having constant table

* v2
- Adjust the value for the calibbias to make the same scale as the _raw
  measurement, and remove misused calibscale.

Akinobu Mita (4):
  iio: accel: adxl345: add link to datasheet
  iio: accel: adxl345: use scan_index for accessing accel registers
  iio: accel: adxl345: add calibration offset support
  iio: accel: adxl345: add sampling frequency support

 drivers/iio/accel/adxl345_core.c | 128 +++++++++++++++++++++++++++++++++++----
 1 file changed, 117 insertions(+), 11 deletions(-)

Cc: Eva Rachel Retuya <eraretuya@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
-- 
2.7.4

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

end of thread, other threads:[~2018-06-24 14:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-21 15:39 [PATCH v3 0/4] iio: accel: adxl345: add calibration offset and sampling frequency support Akinobu Mita
2018-06-21 15:39 ` [PATCH v3 1/4] iio: accel: adxl345: add link to datasheet Akinobu Mita
2018-06-21 15:39 ` [PATCH v3 2/4] iio: accel: adxl345: use scan_index for accessing accel registers Akinobu Mita
2018-06-24 14:00   ` Jonathan Cameron
2018-06-21 15:39 ` [PATCH v3 3/4] iio: accel: adxl345: add calibration offset support Akinobu Mita
2018-06-21 15:39 ` [PATCH v3 4/4] iio: accel: adxl345: add sampling frequency support Akinobu Mita

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).