Skip to content

drivers: iio: Replace ternary operator with min macro

simran singhal linux-iio lkml outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: common: st_sensors: Replace ternary operator with min macrodrivers/iio/common/st_sensors/st_sensors_i2c.c+1 -12 replies
2/4iio: imu: st_lsm6dsx: Replace ternary operator with min macrodrivers/iio/humidity/hts221_core.c+1 -10 replies
3/4iio: imu: st_lsm6dsx: Replace ternary operator with min macrodrivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c+1 -10 replies
4/4iio: light: si1145: Replace ternary operator with min macrodrivers/iio/light/si1145.c+1 -14 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] drivers: iio: Replace ternary operator with min macro

Use macro min() to get the minimum of two values for brevity and readability.

simran singhal (4):
iio: common: st_sensors: Replace ternary operator with min macro
iio: imu: st_lsm6dsx: Replace ternary operator with min macro
iio: imu: st_lsm6dsx: Replace ternary operator with min macro
iio: light: si1145: Replace ternary operator with min macro

 drivers/iio/common/st_sensors/st_sensors_i2c.c | 2 +-
 drivers/iio/humidity/hts221_core.c             | 2 +-
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 2 +-
 drivers/iio/light/si1145.c                     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4