From: Akinobu Mita <akinobu.mita@gmail.com>
To: linux-iio@vger.kernel.org
Cc: Akinobu Mita <akinobu.mita@gmail.com>,
Eva Rachel Retuya <eraretuya@gmail.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Jonathan Cameron <jic23@kernel.org>
Subject: [PATCH v5 0/4] iio: accel: adxl345: add calibration offset and sampling frequency support
Date: Sun, 1 Jul 2018 01:32:41 +0900 [thread overview]
Message-ID: <1530376365-23946-1-git-send-email-akinobu.mita@gmail.com> (raw)
This patchset adds calibration offset and sampling frequency support for
adxl345 driver with some preparatory changes.
* v5 (Suggested by Andy Shevchenko)
- Introduce constant for nHZ per HZ
- Find an register setting without looping over all available frequencies
- Allow all user supplied values and round to an available frequency
* v4 (Suggested by Jonathan Cameron)
- Stop abusing scan_index and keep using address field in iio_chan_spec
* 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: convert address field usage in iio_chan_spec
iio: accel: adxl345: add calibration offset support
iio: accel: adxl345: add sampling frequency support
drivers/iio/accel/adxl345_core.c | 121 +++++++++++++++++++++++++++++++++++----
1 file changed, 110 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
next reply other threads:[~2018-06-30 16:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-30 16:32 Akinobu Mita [this message]
2018-06-30 16:32 ` [PATCH v5 1/4] iio: accel: adxl345: add link to datasheet Akinobu Mita
2018-07-07 16:40 ` Jonathan Cameron
2018-06-30 16:32 ` [PATCH v5 2/4] iio: accel: adxl345: convert address field usage in iio_chan_spec Akinobu Mita
2018-06-30 16:32 ` [PATCH v5 3/4] iio: accel: adxl345: add calibration offset support Akinobu Mita
2018-06-30 16:32 ` [PATCH v5 4/4] iio: accel: adxl345: add sampling frequency support Akinobu Mita
2018-07-04 22:06 ` Andy Shevchenko
2018-07-06 16:08 ` Akinobu Mita
2018-07-07 16:40 ` Andy Shevchenko
2018-07-04 22:12 ` [PATCH v5 0/4] iio: accel: adxl345: add calibration offset and " Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1530376365-23946-1-git-send-email-akinobu.mita@gmail.com \
--to=akinobu.mita@gmail.com \
--cc=andy.shevchenko@gmail.com \
--cc=eraretuya@gmail.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).