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

* [PATCH v3 01/10] units: Change from 'L' to 'UL'
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 02/10] units: Add the HZ macros Daniel Lezcano
                   ` (8 subsequent siblings)
  9 siblings, 0 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

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


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

* [PATCH v3 02/10] units: Add the HZ macros
  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 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 03/10] thermal/drivers/devfreq_cooling: Use " Daniel Lezcano
                   ` (7 subsequent siblings)
  9 siblings, 0 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

The macros for the unit conversion for frequency are duplicated in
different places.

Provide these macros in the 'units' header, so they can be reused.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Christian Eggers <ceggers@arri.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/units.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/units.h b/include/linux/units.h
index ff51d3cfc6a0..8b8dc8a84d93 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -4,6 +4,10 @@
 
 #include <linux/math.h>
 
+#define HZ_PER_KHZ		1000UL
+#define KHZ_PER_MHZ		1000UL
+#define HZ_PER_MHZ		1000000UL
+
 #define MILLIWATT_PER_WATT	1000UL
 #define MICROWATT_PER_MILLIWATT	1000UL
 #define MICROWATT_PER_WATT	1000000UL
-- 
2.25.1


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

* [PATCH v3 03/10] thermal/drivers/devfreq_cooling: Use HZ macros
  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 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 04/10] devfreq: " Daniel Lezcano
                   ` (6 subsequent siblings)
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

The new macro uses a unsigned long type which is already the type in
the current code via the 'freq' variable.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Christian Eggers <ceggers@arri.de>
---
 drivers/thermal/devfreq_cooling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c
index 5a86cffd78f6..4310cb342a9f 100644
--- a/drivers/thermal/devfreq_cooling.c
+++ b/drivers/thermal/devfreq_cooling.c
@@ -18,10 +18,10 @@
 #include <linux/pm_opp.h>
 #include <linux/pm_qos.h>
 #include <linux/thermal.h>
+#include <linux/units.h>
 
 #include <trace/events/thermal.h>
 
-#define HZ_PER_KHZ		1000
 #define SCALE_ERROR_MITIGATION	100
 
 /**
-- 
2.25.1


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

* [PATCH v3 04/10] devfreq: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (2 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 03/10] thermal/drivers/devfreq_cooling: Use " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 05/10] iio/drivers/as73211: " Daniel Lezcano
                   ` (5 subsequent siblings)
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

The new macro has an unsigned long type.

All the code is dealing with unsigned long and the code using the
macro is doing a coercitive cast to unsigned long.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Christian Eggers <ceggers@arri.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 drivers/devfreq/devfreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 28f3e0ba6cdd..85faa7a5c7d1 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -27,6 +27,7 @@
 #include <linux/hrtimer.h>
 #include <linux/of.h>
 #include <linux/pm_qos.h>
+#include <linux/units.h>
 #include "governor.h"
 
 #define CREATE_TRACE_POINTS
@@ -34,7 +35,6 @@
 
 #define IS_SUPPORTED_FLAG(f, name) ((f & DEVFREQ_GOV_FLAG_##name) ? true : false)
 #define IS_SUPPORTED_ATTR(f, name) ((f & DEVFREQ_GOV_ATTR_##name) ? true : false)
-#define HZ_PER_KHZ	1000
 
 static struct class *devfreq_class;
 static struct dentry *devfreq_debugfs;
-- 
2.25.1


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

* [PATCH v3 05/10] iio/drivers/as73211: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (3 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 04/10] devfreq: " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 06/10] hwmon/drivers/mr75203: " Daniel Lezcano
                   ` (4 subsequent siblings)
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Christian Eggers <ceggers@arri.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/light/as73211.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c
index 7b32dfaee9b3..3ba2378df3dd 100644
--- a/drivers/iio/light/as73211.c
+++ b/drivers/iio/light/as73211.c
@@ -24,8 +24,7 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/pm.h>
-
-#define HZ_PER_KHZ 1000
+#include <linux/units.h>
 
 #define AS73211_DRV_NAME "as73211"
 
-- 
2.25.1


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

* [PATCH v3 06/10] hwmon/drivers/mr75203: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (4 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 05/10] iio/drivers/as73211: " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 07/10] iio/drivers/hid-sensor: " Daniel Lezcano
                   ` (3 subsequent siblings)
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

The new macro is an unsigned long. The code dealing with it is
considering as an unsigned long also.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Christian Eggers <ceggers@arri.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/hwmon/mr75203.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/mr75203.c b/drivers/hwmon/mr75203.c
index 18da5a25e89a..868243dba1ee 100644
--- a/drivers/hwmon/mr75203.c
+++ b/drivers/hwmon/mr75203.c
@@ -17,6 +17,7 @@
 #include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
+#include <linux/units.h>
 
 /* PVT Common register */
 #define PVT_IP_CONFIG	0x04
@@ -37,7 +38,6 @@
 #define CLK_SYNTH_EN		BIT(24)
 #define CLK_SYS_CYCLES_MAX	514
 #define CLK_SYS_CYCLES_MIN	2
-#define HZ_PER_MHZ		1000000L
 
 #define SDIF_DISABLE	0x04
 
-- 
2.25.1


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

* [PATCH v3 07/10] iio/drivers/hid-sensor: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (5 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 06/10] hwmon/drivers/mr75203: " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 08/10] i2c/drivers/ov02q10: " Daniel Lezcano
                   ` (2 subsequent siblings)
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
index 043f199e7bc6..9b279937a24e 100644
--- a/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
+++ b/drivers/iio/common/hid-sensors/hid-sensor-attributes.c
@@ -6,12 +6,11 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/time.h>
+#include <linux/units.h>
 
 #include <linux/hid-sensor-hub.h>
 #include <linux/iio/iio.h>
 
-#define HZ_PER_MHZ	1000000L
-
 static struct {
 	u32 usage_id;
 	int unit; /* 0 for default others from HID sensor spec */
-- 
2.25.1


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

* [PATCH v3 08/10] i2c/drivers/ov02q10: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (6 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 07/10] iio/drivers/hid-sensor: " Daniel Lezcano
@ 2021-08-16 11:47 ` 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
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/i2c/ov02a10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov02a10.c b/drivers/media/i2c/ov02a10.c
index a3ce5500d355..0f08c05333ea 100644
--- a/drivers/media/i2c/ov02a10.c
+++ b/drivers/media/i2c/ov02a10.c
@@ -9,6 +9,7 @@
 #include <linux/module.h>
 #include <linux/pm_runtime.h>
 #include <linux/regulator/consumer.h>
+#include <linux/units.h>
 #include <media/media-entity.h>
 #include <media/v4l2-async.h>
 #include <media/v4l2-ctrls.h>
@@ -64,7 +65,6 @@
 /* Test pattern control */
 #define OV02A10_REG_TEST_PATTERN			0xb6
 
-#define HZ_PER_MHZ					1000000L
 #define OV02A10_LINK_FREQ_390MHZ			(390 * HZ_PER_MHZ)
 #define OV02A10_ECLK_FREQ				(24 * HZ_PER_MHZ)
 
-- 
2.25.1


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

* [PATCH v3 09/10] mtd/drivers/nand: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (7 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 08/10] i2c/drivers/ov02q10: " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  2021-08-16 11:47 ` [PATCH v3 10/10] phy/drivers/stm32: " Daniel Lezcano
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mtd/nand/raw/intel-nand-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/intel-nand-controller.c b/drivers/mtd/nand/raw/intel-nand-controller.c
index 8b49fd56cf96..709f0402fbae 100644
--- a/drivers/mtd/nand/raw/intel-nand-controller.c
+++ b/drivers/mtd/nand/raw/intel-nand-controller.c
@@ -20,6 +20,7 @@
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/types.h>
+#include <linux/units.h>
 #include <asm/unaligned.h>
 
 #define EBU_CLC			0x000
@@ -102,7 +103,6 @@
 
 #define MAX_CS	2
 
-#define HZ_PER_MHZ	1000000L
 #define USEC_PER_SEC	1000000L
 
 struct ebu_nand_cs {
-- 
2.25.1


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

* [PATCH v3 10/10] phy/drivers/stm32: Use HZ macros
  2021-08-16 11:47 [PATCH v3 00/10] Add Hz macros Daniel Lezcano
                   ` (8 preceding siblings ...)
  2021-08-16 11:47 ` [PATCH v3 09/10] mtd/drivers/nand: " Daniel Lezcano
@ 2021-08-16 11:47 ` Daniel Lezcano
  9 siblings, 0 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

HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/phy/st/phy-stm32-usbphyc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c
index 3e491dfb2525..937a14fa7448 100644
--- a/drivers/phy/st/phy-stm32-usbphyc.c
+++ b/drivers/phy/st/phy-stm32-usbphyc.c
@@ -15,6 +15,7 @@
 #include <linux/of_platform.h>
 #include <linux/phy/phy.h>
 #include <linux/reset.h>
+#include <linux/units.h>
 
 #define STM32_USBPHYC_PLL	0x0
 #define STM32_USBPHYC_MISC	0x8
@@ -47,7 +48,6 @@
 #define PLL_FVCO_MHZ		2880
 #define PLL_INFF_MIN_RATE_HZ	19200000
 #define PLL_INFF_MAX_RATE_HZ	38400000
-#define HZ_PER_MHZ		1000000L
 
 struct pll_params {
 	u8 ndiv;
-- 
2.25.1


^ permalink raw reply related	[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.