All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/10] Add Hz macros
@ 2021-08-16 11:47 Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 01/10] units: Change from 'L' to 'UL' Daniel Lezcano
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Daniel Lezcano @ 2021-08-16 11:47 UTC (permalink / raw)
  To: andriy.shevchenko, akpm
  Cc: jic23, linux-kernel, ceggers, lukasz.luba, myungjoo.ham,
	kyungmin.park, lars, pmeerw, rui.zhang, linux, miquel.raynal,
	mcoquelin.stm32, rafael, daniel.lezcano

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-08-16 11:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 01/10] units: Change from 'L' to 'UL' Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 02/10] units: Add the HZ macros Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 03/10] thermal/drivers/devfreq_cooling: Use " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 04/10] devfreq: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 05/10] iio/drivers/as73211: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 06/10] hwmon/drivers/mr75203: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 07/10] iio/drivers/hid-sensor: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 08/10] i2c/drivers/ov02q10: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 09/10] mtd/drivers/nand: " Daniel Lezcano
2021-08-16 11:47 ` [PATCH v3 10/10] phy/drivers/stm32: " Daniel Lezcano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.