diff mbox series

[1/5] units: add a macro for MILLIVOLT_PER_VOLT

Message ID 20230410153314.27127-1-dinh.nguyen@linux.intel.com (mailing list archive)
State Changes Requested
Headers show
Series [1/5] units: add a macro for MILLIVOLT_PER_VOLT | expand

Commit Message

Dinh Nguyen April 10, 2023, 3:33 p.m. UTC
From: Dinh Nguyen <dinh.nguyen@linux.intel.com>

Add a define for MILLIVOLT_PER_VOLT.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dinh Nguyen <dinh.nguyen@linux.intel.com>
---
 include/linux/units.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/units.h b/include/linux/units.h
index 2793a41e73a2..5b797535e1b9 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -31,6 +31,8 @@ 
 #define MICROWATT_PER_MILLIWATT	1000UL
 #define MICROWATT_PER_WATT	1000000UL
 
+#define MILLIVOLT_PER_VOLT	1000UL
+
 #define ABSOLUTE_ZERO_MILLICELSIUS -273150
 
 static inline long milli_kelvin_to_millicelsius(long t)