diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-12-08 17:41:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-23 08:12:39 +0100 |
commit | 0e7f574162e2f15f4b63f9892906f6a9afe4429f (patch) | |
tree | 28e2b3e20b2df846a6a32987c963962b43e15536 /include/linux | |
parent | cde2b87517dcf1e2aa887ad8a327b022e663dcea (diff) | |
download | linux-stable-0e7f574162e2f15f4b63f9892906f6a9afe4429f.tar.gz linux-stable-0e7f574162e2f15f4b63f9892906f6a9afe4429f.tar.bz2 linux-stable-0e7f574162e2f15f4b63f9892906f6a9afe4429f.zip |
units: Add Watt units
[ Upstream commit 2ee5f8f05949735fa2f4c463a5e13fcb3660c719 ]
As there are the temperature units, let's add the Watt macros definition.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: 3ef79cd14122 ("serial: sc16is7xx: set safe default SPI clock frequency")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/units.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/units.h b/include/linux/units.h index aaf716364ec3..92c234e71cab 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -4,6 +4,10 @@ #include <linux/kernel.h> +#define MILLIWATT_PER_WATT 1000L +#define MICROWATT_PER_MILLIWATT 1000L +#define MICROWATT_PER_WATT 1000000L + #define ABSOLUTE_ZERO_MILLICELSIUS -273150 static inline long milli_kelvin_to_millicelsius(long t) |