units: Add Watt units
[ Upstream commit2ee5f8f059] 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:c8c37bc514("i2c: designware: use casting of u64 in clock multiplication to avoid overflow") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
76d9ebb7f0
commit
974aaf1180
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue