mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] iio: adc: Provide mult_fract() and make use of it
@ 2026-11-19 19:19 Andy Shevchenko
  2026-11-19 19:19 ` [PATCH v2 1/3] math.h: Add mult_fract() that takes struct __Txx_fract as argument Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Shevchenko @ 2026-11-19 19:19 UTC (permalink / raw)
  To: Jonathan Cameron, Marcelo Schmitt, Andy Shevchenko,
	Cristian Ciocaltea, linux, linux-iio, linux-kernel
  Cc: Michael Hennerich, Nuno Sá,
	Esteban Blanc, Jonathan Cameron, David Lechner, Andy Shevchenko

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: <20261117091638.1463621-1-andriy.shevchenko@linux.intel.com>

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

-- 
2.50.1


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

end of thread, other threads:[~2026-11-20 10:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 19:19 [PATCH v2 0/3] iio: adc: Provide mult_fract() and make use of it Andy Shevchenko
2026-11-19 19:19 ` [PATCH v2 1/3] math.h: Add mult_fract() that takes struct __Txx_fract as argument Andy Shevchenko
2026-11-19 19:19 ` [PATCH v2 2/3] iio: adc: ad4030: Switch to use mult_fract() helper Andy Shevchenko
2026-11-19 19:19 ` [PATCH v2 3/3] iio: adc: ltc2378: " Andy Shevchenko
2026-11-20 10:28 ` [PATCH v2 0/3] iio: adc: Provide mult_fract() and make use of it Joshua Crofts

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

all inboxes | Powered by JetHome®