Skip to content

iio: adc: Provide mult_fract() and make use of it

Andy Shevchenko linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3math.h: Add mult_fract() that takes struct __Txx_fract as argumentinclude/linux/math.h+7 -00 replies
2/3iio: adc: ad4030: Switch to use mult_fract() helperdrivers/iio/adc/ad4030.c+6 -70 replies
3/3iio: adc: ltc2378: Switch to use mult_fract() helperdrivers/iio/adc/ltc2378.c+3 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarcelo SchmittJoshua Crofts
SeriesR-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] iio: adc: Provide mult_fract() and make use of it

In a couple of IIO ADC driver the suggested new helper mult_fract() may be used. So, provide it and update the straightforward users.

The helper has potential treewide, hence it's provided directly in math.h.

In v2:
- updated commit message in patch 1 (Sashiko, c/o Joshua)
- used local variable to avoid double evaluation (Sashiko, c/o Joshua)
- collected tags (Marcelo)

v1: <[email protected]>

Andy Shevchenko (3):
math.h: Add mult_fract() that takes struct __Txx_fract as argument
iio: adc: ad4030: Switch to use mult_fract() helper
iio: adc: ltc2378: Switch to use mult_fract() helper

 drivers/iio/adc/ad4030.c  | 13 ++++++-------
 drivers/iio/adc/ltc2378.c |  4 +++-
 include/linux/math.h      |  7 +++++++
 3 files changed, 16 insertions(+), 8 deletions(-)
Signature · 1 line
2.50.1