public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] iio: afe: rescale: A few cleanups
@ 2024-12-04  1:33 Andy Shevchenko
  2024-12-04  1:33 ` [PATCH v1 1/4] iio: afe: rescale: Don't use ^ for booleans Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Andy Shevchenko @ 2024-12-04  1:33 UTC (permalink / raw)
  To: Andy Shevchenko, linux-iio, linux-kernel
  Cc: Peter Rosin, Jonathan Cameron, Lars-Peter Clausen

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

-- 
2.43.0.rc1.1336.g36b5255a03ac


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

end of thread, other threads:[~2024-12-06 22:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-04  1:33 [PATCH v1 0/4] iio: afe: rescale: A few cleanups Andy Shevchenko
2024-12-04  1:33 ` [PATCH v1 1/4] iio: afe: rescale: Don't use ^ for booleans Andy Shevchenko
2024-12-06 13:24   ` David Laight
2024-12-06 15:19     ` 'Andy Shevchenko'
2024-12-06 20:13       ` David Laight
2024-12-06 22:27         ` Peter Rosin
2024-12-04  1:33 ` [PATCH v1 2/4] iio: afe: rescale: Don't use ULL(1) << x instead of BIT(x) Andy Shevchenko
2024-12-04  1:33 ` [PATCH v1 3/4] iio: afe: rescale: Re-use generic struct s32_fract Andy Shevchenko
2024-12-04 11:11   ` kernel test robot
2024-12-04 11:32   ` kernel test robot
2024-12-04  1:33 ` [PATCH v1 4/4] iio: afe: rescale: Don't use "proxy" headers Andy Shevchenko

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