From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Jonathan Santos <Jonathan.Santos@analog.com>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, lars@metafoo.de,
Michael.Hennerich@analog.com, jic23@kernel.org,
dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
jonath4nns@gmail.com
Subject: Re: [PATCH v6 3/5] units: add conversion macros for percentage related units
Date: Mon, 19 Jan 2026 09:57:27 +0200 [thread overview]
Message-ID: <aW3j5-oXvbC6sBRZ@smile.fi.intel.com> (raw)
In-Reply-To: <aW3jQtiBcgcXLgsR@smile.fi.intel.com>
On Mon, Jan 19, 2026 at 09:54:42AM +0200, Andy Shevchenko wrote:
> On Wed, Jan 14, 2026 at 06:27:03AM -0300, Jonathan Santos wrote:
> > Add macros to convert between ratio and percentage related units,
> > including percent (1/100), permille (1/1,000), permyriad (1/10,000,
> > also equivalent to one Basis point) and per cent mille (1/100,000).
> > Those are Used for precise fractional calculations in engineering,
> > finance, and measurement applications.
>
> This version LGTM,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
FWIW, we have one dup
drivers/net/wireless/realtek/rtw89/phy.h:93:#define PERCENT 100
But since the type and value is the same it can be addressed later on.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-01-19 7:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 9:26 [PATCH v6 0/5] Add support for ADAQ776x-1 ADC Family Jonathan Santos
2026-01-14 9:26 ` [PATCH v6 1/5] dt-bindings: iio: adc: ad7768-1: add new supported parts Jonathan Santos
2026-01-14 9:26 ` [PATCH v6 2/5] iio: adc: ad7768-1: introduce chip info for future multidevice support Jonathan Santos
2026-01-14 9:27 ` [PATCH v6 3/5] units: add conversion macros for percentage related units Jonathan Santos
2026-01-19 7:54 ` Andy Shevchenko
2026-01-19 7:57 ` Andy Shevchenko [this message]
2026-01-14 9:27 ` [PATCH v6 4/5] iio: adc: ad7768-1: refactor ad7768_write_raw() Jonathan Santos
2026-01-14 9:27 ` [PATCH v6 5/5] iio: adc: ad7768-1: add support for ADAQ776x-1 ADC Family Jonathan Santos
2026-01-16 18:52 ` Jonathan Cameron
2026-01-19 8:06 ` Andy Shevchenko
2026-01-22 19:25 ` [PATCH v6 0/5] Add " Jonathan Cameron
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=aW3j5-oXvbC6sBRZ@smile.fi.intel.com \
--to=andriy.shevchenko@intel.com \
--cc=Jonathan.Santos@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=jonath4nns@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox