Messages in this thread | | | From | Daniel Lezcano <> | Subject | [PATCH v3 00/10] Add Hz macros | Date | Mon, 16 Aug 2021 13:47:22 +0200 |
| |
There are multiple definitions of the HZ_PER_MHZ or HZ_PER_KHZ in the different drivers. Instead of duplicating this definition again and again, add one in the units.h header to be reused in all the place the redefiniton occurs.
At the same time, change the type of the Watts, as they can not be negative.
Daniel Lezcano (10): units: Change from 'L' to 'UL' units: Add the HZ macros thermal/drivers/devfreq_cooling: Use HZ macros devfreq: Use HZ macros iio/drivers/as73211: Use HZ macros hwmon/drivers/mr75203: Use HZ macros iio/drivers/hid-sensor: Use HZ macros i2c/drivers/ov02q10: Use HZ macros mtd/drivers/nand: Use HZ macros phy/drivers/stm32: Use HZ macros
drivers/devfreq/devfreq.c | 2 +- drivers/hwmon/mr75203.c | 2 +- drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 3 +-- drivers/iio/light/as73211.c | 3 +-- drivers/media/i2c/ov02a10.c | 2 +- drivers/mtd/nand/raw/intel-nand-controller.c | 2 +- drivers/phy/st/phy-stm32-usbphyc.c | 2 +- drivers/thermal/devfreq_cooling.c | 2 +- include/linux/units.h | 10 +++++++--- 9 files changed, 15 insertions(+), 13 deletions(-)
-- 2.25.1
| |