All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Crofts <crofts@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com>,
	"Marcelo Schmitt" <marcelo.schmitt@analog.com>,
	"Cristian Ciocaltea" <cristian.ciocaltea@collabora.com>,
	linux@analog.com, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Michael Hennerich" <michael.hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Esteban Blanc" <eblanc@baylibre.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Andy Shevchenko" <andy@kernel.org>
Subject: Re: [PATCH v1 1/3] math.h: Add mult_fract() that takes struct __Txx_fract as argument
Date: Wed, 18 Nov 2026 10:56:26 +0100	[thread overview]
Message-ID: <20261118105626.000074e8@kernel.org> (raw)
In-Reply-To: <av1zrjobIT3KRfiP@ashevche-desk.local>

On Wed, 18 Nov 2026 11:45:18 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> On Wed, Nov 18, 2026 at 09:22:29AM +0100, Joshua Crofts wrote:
> > On Tue, 17 Nov 2026 10:14:40 +0100
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> >   
> > > Add mult_fract() that takes struct __Txx_fract as argument and
> > > calls do_div() instead of plain divisions.
> > > 
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > ---
> > >  include/linux/math.h | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/include/linux/math.h b/include/linux/math.h
> > > index 1e8fb3efbc8c..ded258df50df 100644
> > > --- a/include/linux/math.h
> > > +++ b/include/linux/math.h
> > > @@ -128,6 +128,10 @@ __STRUCT_FRACT(u32)
> > >  	q * n_ + r * n_ / d_;	\
> > >  })
> > >  
> > > +/* Same as above but for a struct __Txx_fract fraction */
> > > +#define mult_fract(x, f) 				\
> > > +	mult_frac(x, (f)->numerator, (f)->denominator)
> > > +
> > >  #define sector_div(a, b) do_div(a, b)  
> > 
> > Sashiko has some remarks.  
> 
> Strange that I have got no email on that...

Yeah, for IIO Sashiko doesn't send emails, only if a patch series touches
any dt-bindings stuff (new drivers etc.).

-- 
Kind regards,
Joshua Crofts

  reply	other threads:[~2026-11-18  9:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261118105626.000074e8@kernel.org \
    --to=crofts@kernel.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=andy@kernel.org \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=dlechner@baylibre.com \
    --cc=eblanc@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=jonathan.cameron@oss.qualcomm.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=marcelo.schmitt@analog.com \
    --cc=michael.hennerich@analog.com \
    --cc=nuno.sa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.