mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/3] iio: adc: Provide mult_fract() and make use of it
@ 2026-11-17  9:14 Andy Shevchenko
  2026-11-17  9:14 ` [PATCH v1 1/3] math.h: Add mult_fract() that takes struct __Txx_fract as argument Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-11-17  9:14 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.

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      |  4 ++++
 3 files changed, 13 insertions(+), 8 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2026-11-17  9:16 UTC | newest]

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

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®