Skip to content

Add Hz macros

Daniel Lezcano lkml 2 versions – Applied

Status from this message: [merged] phy-drivers-stm32-use-hz-macros.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 0 repliesApplied 10/10
  2. v29 patches 19 repliesApplied

Patches in v3 All 10 applied

#Subject and filesSizeRepliesApplied
1/10units: Change from 'L' to 'UL'include/linux/units.h+3 -30 repliesApplied
2/10units: Add the HZ macrosinclude/linux/units.h+4 -00 repliesApplied
3/10thermal/drivers/devfreq_cooling: Use HZ macrosdrivers/thermal/devfreq_cooling.c+1 -10 repliesApplied
4/10devfreq: Use HZ macrosdrivers/devfreq/devfreq.c+1 -10 repliesApplied
5/10iio/drivers/as73211: Use HZ macrosdrivers/iio/light/as73211.c+1 -20 repliesApplied
6/10hwmon/drivers/mr75203: Use HZ macrosdrivers/hwmon/mr75203.c+1 -10 repliesApplied
7/10iio/drivers/hid-sensor: Use HZ macrosdrivers/iio/common/hid-sensors/hid-sensor-attributes.c+1 -20 repliesApplied
8/10i2c/drivers/ov02q10: Use HZ macrosdrivers/media/i2c/ov02a10.c+1 -10 repliesApplied
9/10mtd/drivers/nand: Use HZ macrosdrivers/mtd/nand/raw/intel-nand-controller.c+1 -10 repliesApplied
10/10phy/drivers/stm32: Use HZ macrosdrivers/phy/st/phy-stm32-usbphyc.c+1 -10 repliesApplied

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchChristian EggersAndy ShevchenkoChanwoo ChoiJonathan CameronGuenter RoeckMiquel Raynal
1/10
2/10R-b R-b
3/10R-b R-b
4/10R-b R-b A-b
5/10R-b R-b A-b
6/10R-b R-b A-b
7/10R-b A-b
8/10R-b
9/10R-b A-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/10] Add Hz macros

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(-)
Signature · 1 line
2.25.1