Skip to content

iio: afe: rescale: A few cleanups

Andy Shevchenko linux-iio lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: afe: rescale: Don't use ^ for booleansdrivers/iio/afe/iio-rescale.c+2 -24 replies
2/4iio: afe: rescale: Don't use ULL(1) << x instead of BIT(x)drivers/iio/afe/iio-rescale.c+2 -10 replies
3/4iio: afe: rescale: Re-use generic struct s32_fractdrivers/iio/afe/iio-rescale.c include/linux/iio/afe/rescale.h+44 -400 replies
4/4iio: afe: rescale: Don't use "proxy" headersdrivers/iio/afe/iio-rescale.c+4 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/4] iio: afe: rescale: A few cleanups

There are cleanups to the code, most of the + LoCs due to missed inclusions.

The patch 3 is kinda interesting as in long term the idea to add multiplication and division macros over the fract structures, which will simplify code that uses rational numbers. Hence the mentioned patch is just a preparatory for making next step easier.

Andy Shevchenko (4):
iio: afe: rescale: Don't use ^ for booleans
iio: afe: rescale: Don't use ULL(1) << x instead of BIT(x)
iio: afe: rescale: Re-use generic struct s32_fract
iio: afe: rescale: Don't use "proxy" headers

 drivers/iio/afe/iio-rescale.c   | 88 ++++++++++++++++++---------------
 include/linux/iio/afe/rescale.h |  5 +-
 2 files changed, 51 insertions(+), 42 deletions(-)
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac