public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] IIO: use irq_get_trigger_type() instead of opencoding.
@ 2024-09-01 13:59 Jonathan Cameron
  2024-09-01 13:59 ` [PATCH 01/15] iio: accel: adxl380: use irq_get_trigger_type() Jonathan Cameron
                   ` (15 more replies)
  0 siblings, 16 replies; 38+ messages in thread
From: Jonathan Cameron @ 2024-09-01 13:59 UTC (permalink / raw)
  To: linux-iio
  Cc: Andy Shevchenko, Antoniu Miclaus, Sean Nyekjaer, Marek Vasut,
	Denis Ciocca, Rui Miguel Silva, Linus Walleij, Danila Tikhonov,
	Jagath Jog J, Jean-Baptiste Maneyrol, Lorenzo Bianconi,
	Vasileios Amoiridis, Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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(-)

-- 
2.46.0


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2024-09-07 14:35 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-01 13:59 [PATCH 00/15] IIO: use irq_get_trigger_type() instead of opencoding Jonathan Cameron
2024-09-01 13:59 ` [PATCH 01/15] iio: accel: adxl380: use irq_get_trigger_type() Jonathan Cameron
2024-09-01 13:59 ` [PATCH 02/15] iio: accel: fxls8962af: " Jonathan Cameron
2024-09-02  9:20   ` Sean Nyekjaer
2024-09-02 11:41   ` Andy Shevchenko
2024-09-01 13:59 ` [PATCH 03/15] iio: adc: ti-ads1015: " Jonathan Cameron
2024-09-02 11:42   ` Andy Shevchenko
2024-09-01 13:59 ` [PATCH 04/15] iio: common: st: " Jonathan Cameron
2024-09-02 11:44   ` Andy Shevchenko
2024-09-07 14:19     ` Jonathan Cameron
2024-09-01 13:59 ` [PATCH 05/15] iio: gyro: fxas21002c: " Jonathan Cameron
2024-09-02 11:44   ` Andy Shevchenko
2024-09-01 13:59 ` [PATCH 06/15] iio: gyro: mpu3050: " Jonathan Cameron
2024-09-02  9:13   ` Linus Walleij
2024-09-02 11:46   ` Andy Shevchenko
2024-09-01 13:59 ` [PATCH 07/15] iio: humidity: hts221: " Jonathan Cameron
2024-09-02 11:46   ` Andy Shevchenko
2024-09-02 13:42   ` Lorenzo Bianconi
2024-09-01 13:59 ` [PATCH 08/15] iio: imu: bmi160: " Jonathan Cameron
2024-09-02 11:45   ` Andy Shevchenko
2024-09-07 14:26     ` Jonathan Cameron
2024-09-01 13:59 ` [PATCH 09/15] iio: imu: bmi323: " Jonathan Cameron
2024-09-01 13:59 ` [PATCH 10/15] iio: imu: inv_icm42600: " Jonathan Cameron
2024-09-01 13:59 ` [PATCH 11/15] iio: imu: inv_mpu6050: " Jonathan Cameron
2024-09-01 13:59 ` [PATCH 12/15] iio: imu: st_lsm6dsx: " Jonathan Cameron
2024-09-02 11:40   ` Lorenzo Bianconi
2024-09-02 11:47   ` Andy Shevchenko
2024-09-01 13:59 ` [PATCH 13/15] iio: light: st_uvis25: " Jonathan Cameron
2024-09-02 11:47   ` Andy Shevchenko
2024-09-02 18:19     ` Jonathan Cameron
2024-09-03 14:12       ` Andy Shevchenko
2024-09-02 13:42   ` Lorenzo Bianconi
2024-09-01 13:59 ` [PATCH 14/15] iio: magn: ak8974: " Jonathan Cameron
2024-09-02  9:14   ` Linus Walleij
2024-09-01 13:59 ` [PATCH 15/15] iio: pressure: bmp280: " Jonathan Cameron
2024-09-02 17:21   ` Vasileios Amoiridis
2024-09-02 11:49 ` [PATCH 00/15] IIO: use irq_get_trigger_type() instead of opencoding Andy Shevchenko
2024-09-07 14:35   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox