Thread (8 messages) 8 messages, 4 authors, 2025-12-07
STALE233d
Revisions (5)
  1. v1 [diff vs current]
  2. v3 [diff vs current]
  3. v4 current
  4. v5 [diff vs current]
  5. v6 [diff vs current]

[PATCH v4 3/4] units: add BASIS_POINTS macro

From: Jonathan Santos <hidden>
Date: 2025-11-26 21:56:44
Also in: linux-iio, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Add macro for basis points unit, defined as a 1/100th of a percent.

Signed-off-by: Jonathan Santos <redacted>
---
v4 Changes:
* New patch.
---
 include/linux/units.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/linux/units.h b/include/linux/units.h
index 00e15de33eca..da2c24fe5ee7 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -21,6 +21,8 @@
 #define PICO	1000000000000ULL
 #define FEMTO	1000000000000000ULL
 
+#define BASIS_POINTS 10000UL
+
 #define NANOHZ_PER_HZ		1000000000UL
 #define MICROHZ_PER_HZ		1000000UL
 #define MILLIHZ_PER_HZ		1000UL
-- 
2.34.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help