Messages in this thread Patch in this message | | | From | Daniel Lezcano <> | Subject | [PATCH v3 01/10] units: Change from 'L' to 'UL' | Date | Mon, 16 Aug 2021 13:47:23 +0200 |
| |
The users of the macros are safe to be assigned with an unsigned instead of signed as the variables using them are themselves unsigned.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- include/linux/units.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/units.h b/include/linux/units.h index dcc30a53fa93..ff51d3cfc6a0 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -4,9 +4,9 @@ #include <linux/math.h> -#define MILLIWATT_PER_WATT 1000L -#define MICROWATT_PER_MILLIWATT 1000L -#define MICROWATT_PER_WATT 1000000L +#define MILLIWATT_PER_WATT 1000UL +#define MICROWATT_PER_MILLIWATT 1000UL +#define MICROWATT_PER_WATT 1000000UL #define ABSOLUTE_ZERO_MILLICELSIUS -273150 -- 2.25.1
| |