mbox series

[v3,0/5] iio: imu: fxos8700: fix bugs about ODR and changes for a good readability

Message ID 20221214031503.3104251-1-carlos.song@nxp.com (mailing list archive)
Headers show
Series iio: imu: fxos8700: fix bugs about ODR and changes for a good readability | expand

Message

Carlos Song Dec. 14, 2022, 3:14 a.m. UTC
From: Carlos Song <carlos.song@nxp.com>

In patch v3, the main work is fixing the bug that mask bits out of an
uninitialized variable. It caused by improper use of filed mask and
FIELD_PREP()/FIELD_GET(). Meanwhile give a further fix based patch v2
and make patches to optimize codes and clean up useless codes for a
good readability.
- Patch v2 [6/7] is split into three minimal fix patches:
  iio: imu: fxos8700: fix incorrect ODR mode readback
  iio: imu: fxos8700: improve readability by field mask and regmap_write
  iio: imu: fxos8700: fix failed initialization ODR value assignment
- A new clean fix is proposed:
  iio: imu: fxos8700: remove definition FXOS8700_CTRL_ODR_MIN
- A further fix based on PATCH v2 [7/7]:
  iio: imu: fxos8700: fix MAGN sensor scale and unit

Carlos Song (5):
  iio: imu: fxos8700: fix incorrect ODR mode readback
  iio: imu: fxos8700: improve readability by field mask and regmap_write
  iio: imu: fxos8700: fix failed initialization ODR mode assignment
  iio: imu: fxos8700: remove definition FXOS8700_CTRL_ODR_MIN
  iio: imu: fxos8700: fix MAGN sensor scale and unit

 drivers/iio/imu/fxos8700_core.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)