[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210816114732.1834145-9-daniel.lezcano@linaro.org>
Date: Mon, 16 Aug 2021 13:47:30 +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 08/10] i2c/drivers/ov02q10: 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: Andy Shevchenko <andriy.shevchenko@...ux.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
Powered by blists - more mailing lists