lkml.org 
[lkml]   [2021]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 00/10] Add Hz macros
Date
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

\
 
 \ /
  Last update: 2021-08-16 13:48    [W:0.120 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site