Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1611900 > unrolled thread

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

Started bysimran singhal <singhalsimran0@gmail.com>
First post2017-03-29 14:40 +0200
Last post2017-03-29 21:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/4] drivers: iio: Replace ternary operator with min macro simran singhal <singhalsimran0@gmail.com> - 2017-03-29 14:40 +0200
    Re: [Outreachy kernel] [PATCH 0/4] drivers: iio: Replace ternary  operator with min macro Alison Schofield <amsfield22@gmail.com> - 2017-03-29 21:00 +0200

#1611900 — [PATCH 0/4] drivers: iio: Replace ternary operator with min macro

Fromsimran singhal <singhalsimran0@gmail.com>
Date2017-03-29 14:40 +0200
Subject[PATCH 0/4] drivers: iio: Replace ternary operator with min macro
Message-ID<tql3j-6Rq-3@gated-at.bofh.it>
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(-)

-- 
2.7.4

[toc] | [next] | [standalone]


#1612247 — Re: [Outreachy kernel] [PATCH 0/4] drivers: iio: Replace ternary operator with min macro

FromAlison Schofield <amsfield22@gmail.com>
Date2017-03-29 21:00 +0200
SubjectRe: [Outreachy kernel] [PATCH 0/4] drivers: iio: Replace ternary operator with min macro
Message-ID<tqqZ4-2xD-11@gated-at.bofh.it>
In reply to#1611900
On Wed, Mar 29, 2017 at 06:03:07PM +0530, simran singhal wrote:
> 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

Hi Simran,

I'm guessing these were found by Coccinelle. Please reference that
in the changelog.

FYI: 'Mileage will vary' on cleanup patches sent upstream.  Their
acceptance varies by subsystem and the change.  Consider sending
one such patch and await feedback.  Another option is to send one
and be direct. Ask below the line --- if such cleanup patches are
welcome.  Sometimes they create too much churn and are only taken
as part of a larger update to the particular driver.

Just my thoughts for future patches as Outreachy window closes :(
alisons

> 
>  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(-)
> 
> -- 
> 2.7.4
> 
> -- 
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1490790791-5694-1-git-send-email-singhalsimran0%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web