[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210816114732.1834145-7-daniel.lezcano@linaro.org>
Date: Mon, 16 Aug 2021 13:47:28 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: andriy.shevchenko@...ux.intel.com, akpm@...ux-foundation.org
Cc: jic23@...nel.org, linux-kernel@...r.kernel.org, ceggers@...i.de,
lukasz.luba@....com, myungjoo.ham@...sung.com,
kyungmin.park@...sung.com, lars@...afoo.de, pmeerw@...erw.net,
rui.zhang@...el.com, linux@...ck-us.net, miquel.raynal@...tlin.com,
mcoquelin.stm32@...il.com, rafael@...nel.org,
daniel.lezcano@...aro.org
Subject: [PATCH v3 06/10] hwmon/drivers/mr75203: Use HZ macros
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@...aro.org>
Reviewed-by: Christian Eggers <ceggers@...i.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Acked-by: Guenter Roeck <linux@...ck-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
Powered by blists - more mailing lists