Skip to content

IIO: use irq_get_trigger_type() instead of opencoding.

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15iio: accel: adxl380: use irq_get_trigger_type()drivers/iio/accel/adxl380.c+1 -60 replies
2/15iio: accel: fxls8962af: use irq_get_trigger_type()drivers/iio/accel/fxls8962af-core.c+1 -12 replies
3/15iio: adc: ti-ads1015: use irq_get_trigger_type()drivers/iio/adc/ti-ads1015.c+1 -11 reply
4/15iio: common: st: use irq_get_trigger_type()drivers/iio/common/st_sensors/st_sensors_trigger.c+1 -12 replies
5/15iio: gyro: fxas21002c: use irq_get_trigger_type()drivers/iio/gyro/fxas21002c_core.c+1 -11 reply
6/15iio: gyro: mpu3050: use irq_get_trigger_type()drivers/iio/gyro/mpu3050-core.c+1 -12 replies
7/15iio: humidity: hts221: use irq_get_trigger_type()drivers/iio/humidity/hts221_buffer.c+1 -12 replies
8/15iio: imu: bmi160: use irq_get_trigger_type()drivers/iio/imu/bmi160/bmi160_core.c+1 -102 replies
9/15iio: imu: bmi323: use irq_get_trigger_type()drivers/iio/imu/bmi323/bmi323_core.c+1 -70 replies
10/15iio: imu: inv_icm42600: use irq_get_trigger_type()drivers/iio/imu/inv_icm42600/inv_icm42600_core.c+1 -90 replies
11/15iio: imu: inv_mpu6050: use irq_get_trigger_type()drivers/iio/imu/inv_mpu6050/inv_mpu_core.c+1 -80 replies
12/15iio: imu: st_lsm6dsx: use irq_get_trigger_type()drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c+1 -12 replies
13/15iio: light: st_uvis25: use irq_get_trigger_type()drivers/iio/light/st_uvis25_core.c+1 -14 replies
14/15iio: magn: ak8974: use irq_get_trigger_type()drivers/iio/magnetometer/ak8974.c+1 -11 reply
15/15iio: pressure: bmp280: use irq_get_trigger_type()drivers/iio/pressure/bmp280-core.c+1 -11 reply

Reviews trailers per patch

6 of 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijSean NyekjaerLorenzo BianconiAndy ShevchenkoVasileios Amoiridis
SeriesR-b
1/15
2/15R-b
3/15
4/15
5/15
6/15R-b
7/15R-b
8/15
9/15
10/15
11/15
12/15R-b
13/15R-b
14/15R-b
15/15T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/15] IIO: use irq_get_trigger_type() instead of opencoding.

From: Jonathan Cameron <[email protected]>

Andy pointed out in a review that there is an irq_get_trigger_type() helper that first gets the irq data then extracts the type from it. This saves on opencoding those two steps when the irq data isn't used for anything else.

Update all the sites this pattern occurs in IIO to use the helper. In a few cases there will be a slightly different error message is somehow there is a valid irq number passed to this call and it doesn't have the data associated with it.

Jonathan Cameron (15):
iio: accel: adxl380: use irq_get_trigger_type()
iio: accel: fxls8962af: use irq_get_trigger_type()
iio: adc: ti-ads1015: use irq_get_trigger_type()
iio: common: st: use irq_get_trigger_type()
iio: gyro: fxas21002c: use irq_get_trigger_type()
iio: gyro: mpu3050: use irq_get_trigger_type()
iio: humidity: hts221: use irq_get_trigger_type()
iio: imu: bmi160: use irq_get_trigger_type()
iio: imu: bmi323: use irq_get_trigger_type()
iio: imu: inv_icm42600: use irq_get_trigger_type()
iio: imu: inv_mpu6050: use irq_get_trigger_type()
iio: imu: st_lsm6dsx: use irq_get_trigger_type()
iio: light: st_uvis25: use irq_get_trigger_type()
iio: magn: ak8974: use irq_get_trigger_type()
iio: pressure: bmp280: use irq_get_trigger_type()

 drivers/iio/accel/adxl380.c                        |  7 +------
 drivers/iio/accel/fxls8962af-core.c                |  2 +-
 drivers/iio/adc/ti-ads1015.c                       |  2 +-
 drivers/iio/common/st_sensors/st_sensors_trigger.c |  2 +-
 drivers/iio/gyro/fxas21002c_core.c                 |  2 +-
 drivers/iio/gyro/mpu3050-core.c                    |  2 +-
 drivers/iio/humidity/hts221_buffer.c               |  2 +-
 drivers/iio/imu/bmi160/bmi160_core.c               | 11 +----------
 drivers/iio/imu/bmi323/bmi323_core.c               |  8 +-------
 drivers/iio/imu/inv_icm42600/inv_icm42600_core.c   | 10 +---------
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c         |  9 +--------
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c       |  2 +-
 drivers/iio/light/st_uvis25_core.c                 |  2 +-
 drivers/iio/magnetometer/ak8974.c                  |  2 +-
 drivers/iio/pressure/bmp280-core.c                 |  2 +-
 15 files changed, 15 insertions(+), 50 deletions(-)
Signature · 1 line
2.46.0