Re: [PATCH v1 2/6] units: Add value of π * 10⁹

From: David Lechner

Date: Mon Oct 27 2025 - 11:01:50 EST


On 10/27/25 9:52 AM, Jonathan Cameron wrote:
> On Mon, 27 Oct 2025 15:34:51 +0100
> Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
>> There are a few drivers that want to have this value, and at least one
>> known to come soon. Let's define a value for them.
>
> Is there any way we can make the x10^9 bit obvious in the naming? Or do
> something a bit nasty like defining a macro along the lines of
>
> PI(scale)?
> e.g. PI(NANO), PI(10000)
>
This was my first thought when looking at this as well.

Or something like PI_x10(6).