[PATCH v4 2/7] units: Add HZ_PER_GHZ definition

Rodrigo Alencar via B4 Relay
2026-01-16T14:32:38Z

From: Rodrigo Alencar <rodrigo.alencar@analog.com>

New PLL IIO driver supports output frequency of several GHz.
The new define helps to constraint DT properties and frequency
calculation parameters.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
---
include/linux/units.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/units.h b/include/linux/units.h
index 00e15de33eca..06870e9e90b8 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -27,6 +27,7 @@

#define HZ_PER_KHZ 1000UL
#define HZ_PER_MHZ 1000000UL
+#define HZ_PER_GHZ 1000000000UL

#define KHZ_PER_MHZ 1000UL
#define KHZ_PER_GHZ 1000000UL

--
2.43.0