Skip to content

Factorize timestamp module

[email protected] linux-iio 2 versions – Applied

Status from this message: Applied to the togreg branch of iio.git. However note that these aren't

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesApplied
  2. v14 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4iio: imu: inv_icm42600: make timestamp module chip independentdrivers/iio/imu/inv_icm42600/inv_icm42600_core.c drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.c drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.h+12 -190 replies
2/4iio: move inv_icm42600 timestamp module in commondrivers/iio/common/Kconfig drivers/iio/common/Makefile drivers/iio/common/inv_sensors/Kconfig +9 more+38 -90 replies
3/4iio: make invensense timestamp module genericdrivers/iio/common/inv_sensors/Makefile drivers/iio/common/inv_sensors/inv_sensors_timestamp.c drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c +5 more+194 -1640 replies
4/4iio: imu: inv_mpu6050: use the common inv_sensors timestamp moduledrivers/iio/imu/inv_mpu6050/Kconfig drivers/iio/imu/inv_mpu6050/inv_mpu_core.c drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +2 more+45 -930 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy Shevchenko
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Factorize timestamp module

From: Jean-Baptiste Maneyrol <[email protected]>

The purpose if this series is to make timestamping from inv_icm42600 driver an independent module and use it for both inv_icm42600 and inv_mpu6050 drivers.

Create a new inv_sensors_timestamp common module based on inv_icm42600 driver and use it in the 2 drivers.

WARNING: this patch requires following commit in fixes-togreg bbaae0c79ebd ("iio: imu: inv_icm42600: fix timestamp reset")

Changelog
- v2: do some headers cleanup and add some justifications in the patches descriptions.

Jean-Baptiste Maneyrol (4):
iio: imu: inv_icm42600: make timestamp module chip independent
iio: move inv_icm42600 timestamp module in common
iio: make invensense timestamp module generic
iio: imu: inv_mpu6050: use the common inv_sensors timestamp module

 drivers/iio/common/Kconfig                    |   1 +
 drivers/iio/common/Makefile                   |   1 +
 drivers/iio/common/inv_sensors/Kconfig        |   7 ++
 drivers/iio/common/inv_sensors/Makefile       |   6 ++
 .../inv_sensors/inv_sensors_timestamp.c}      | 100 +++++++++---------
 drivers/iio/imu/inv_icm42600/Kconfig          |   1 +
 drivers/iio/imu/inv_icm42600/Makefile         |   1 -
 .../iio/imu/inv_icm42600/inv_icm42600_accel.c |  35 +++---
 .../imu/inv_icm42600/inv_icm42600_buffer.c    |  33 +++---
 .../iio/imu/inv_icm42600/inv_icm42600_core.c  |  14 ++-
 .../iio/imu/inv_icm42600/inv_icm42600_gyro.c  |  35 +++---
 .../imu/inv_icm42600/inv_icm42600_timestamp.h |  85 ---------------
 drivers/iio/imu/inv_mpu6050/Kconfig           |   1 +
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c    |  30 ++++--
 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h     |  18 ++--
 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c    |  83 ++-------------
 drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c |   6 +-
 .../linux/iio/common/inv_sensors_timestamp.h  |  95 +++++++++++++++++
 18 files changed, 278 insertions(+), 274 deletions(-)
 create mode 100644 drivers/iio/common/inv_sensors/Kconfig
 create mode 100644 drivers/iio/common/inv_sensors/Makefile
 rename drivers/iio/{imu/inv_icm42600/inv_icm42600_timestamp.c => common/inv_sensors/inv_sensors_timestamp.c} (56%)
 delete mode 100644 drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.h
 create mode 100644 include/linux/iio/common/inv_sensors_timestamp.h
Signature · 1 line
2.34.1