All of lore.kernel.org
 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
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ 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] 8+ messages in thread

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

Thread overview: 8+ 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-18  8:22   ` Joshua Crofts
2026-11-18  9:45     ` Andy Shevchenko
2026-11-18  9:56       ` Joshua Crofts
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
2026-11-18  2:18 ` [PATCH v1 0/3] iio: adc: Provide mult_fract() and make use of it Marcelo Schmitt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.