[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210224144222.23762-2-daniel.lezcano@linaro.org>
Date: Wed, 24 Feb 2021 15:42:12 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: rafael@...nel.org, andriy.shevchenko@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, Zhang Rui <rui.zhang@...el.com>,
Amit Kucheria <amitk@...nel.org>,
linux-pm@...r.kernel.org (open list:THERMAL)
Subject: [PATCH v2 2/9] thermal/drivers/devfreq_cooling: Use HZ macros
HZ unit conversion macros are available in units.h, use them and
remove the duplicate definition.
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Reviewed-by: Christian Eggers <ceggers@...i.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 fed3121ff2a1..fa5b8b0c7604 100644
--- a/drivers/thermal/devfreq_cooling.c
+++ b/drivers/thermal/devfreq_cooling.c
@@ -19,10 +19,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
static DEFINE_IDA(devfreq_ida);
--
2.17.1
Powered by blists - more mailing lists