[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aW3j5-oXvbC6sBRZ@smile.fi.intel.com>
Date: Mon, 19 Jan 2026 09:57:27 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Jonathan Santos <Jonathan.Santos@...log.com>
Cc: linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, lars@...afoo.de,
Michael.Hennerich@...log.com, jic23@...nel.org,
dlechner@...libre.com, nuno.sa@...log.com, andy@...nel.org,
robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
jonath4nns@...il.com
Subject: Re: [PATCH v6 3/5] units: add conversion macros for percentage
related units
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@...el.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
Powered by blists - more mailing lists