[PATCH v1 0/6] iio: Introduce and use value of π

From: Andy Shevchenko
Date: Mon Oct 27 2025 - 10:42:06 EST


There are a few drivers that use value of π (small Greek PI)
of different precision. Instead of hard coding over and over
convert them to use a defined constant, which one of the patches
in this series introduces. No functional changes involved.

Note, the respective IIO macros are not converted as it might include unwanted
churn, and hard to use definitions in the initialisers.

Andy Shevchenko (6):
media: vidtv: Rename PI definition to PI_SAMPLES
units: Add value of π * 10⁹
media: dvb-frontends: atbm8830: Convert to use PI definition
iio: cros_ec_sensors: Convert to use PI definition
iio: frequency: ad9523: Convert to use PI definition
iio: position: iqs624-pos: Convert to use PI definition

drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 4 ++--
drivers/iio/frequency/ad9523.c | 5 +++--
drivers/iio/position/iqs624-pos.c | 3 ++-
drivers/media/dvb-frontends/atbm8830.c | 5 +++--
drivers/media/test-drivers/vidtv/vidtv_s302m.c | 6 +++---
include/linux/units.h | 3 +++
6 files changed, 16 insertions(+), 10 deletions(-)

--
2.50.1