Skip to content

iio:magnetometer:ak8975: fix and enhancements

Gregor Boirie linux-iio 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 1 replyIn review
  2. v25 patches 13 repliesApplied
  3. v16 patches 2 repliesSuperseded

Changes in v4 from the cover letter

* drop first patch as applied
* drop second patch as mounting matrix support will be included in another patch series (see "iio sensor mounting matrix support" thread)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1iio:magnetometer:ak8975: triggered buffer supportdrivers/iio/magnetometer/Kconfig drivers/iio/magnetometer/ak8975.c+112 -251 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] iio:magnetometer:ak8975: fix and enhancements

Various fixes and enhancements for the ak8975 magnetometers family driver.

Changes since v1:
* get rid of silly le16 to cpu conversion since SMBUS handles this for us when reading words (patch 3/6)
* get rid of axes caching and serialize bus access between trigger handler and read_raw
* pack triggered buffer sampling bus accesses into a single SMBUS data block access
* use channel address within read_raw

Changes since v2:
* use devm_regulator_get to allow dummy regulator usage
* ensure regulator is properly disabled
* drop first 3 patches since applied
* document in_magn_matrix sysfs attribute
* single line comments where appropriate
* remove explicit zero init for shift field of iio_chan_spec structure as that's the default
* drop unnecessary ak8975_read_axis signature modification
* remove useless cosmetic changes related to ak8975_channels
* normalize and make error handling code paths clearer
* make ak8975_remove less nitpick'able :)

Changes since v3:
* drop first patch as applied
* drop second patch as mounting matrix support will be included in another patch series (see "iio sensor mounting matrix support" thread)

Gregor.

Gregor Boirie (1):
iio:magnetometer:ak8975: triggered buffer support

 drivers/iio/magnetometer/Kconfig  |   2 +
 drivers/iio/magnetometer/ak8975.c | 135 +++++++++++++++++++++++++++++++-------
 2 files changed, 112 insertions(+), 25 deletions(-)
Signature · 1 line
2.1.4