All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: andriy.shevchenko@linux.intel.com, akpm@linux-foundation.org
Cc: jic23@kernel.org, linux-kernel@vger.kernel.org, ceggers@arri.de,
	lukasz.luba@arm.com, myungjoo.ham@samsung.com,
	kyungmin.park@samsung.com, lars@metafoo.de, pmeerw@pmeerw.net,
	rui.zhang@intel.com, linux@roeck-us.net,
	miquel.raynal@bootlin.com, mcoquelin.stm32@gmail.com,
	rafael@kernel.org, daniel.lezcano@linaro.org
Subject: [PATCH v3 08/10] i2c/drivers/ov02q10: Use HZ macros
Date: Mon, 16 Aug 2021 13:47:30 +0200	[thread overview]
Message-ID: <20210816114732.1834145-9-daniel.lezcano@linaro.org> (raw)
In-Reply-To: <20210816114732.1834145-1-daniel.lezcano@linaro.org>

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


  parent reply	other threads:[~2021-08-16 11:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Daniel Lezcano [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210816114732.1834145-9-daniel.lezcano@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=ceggers@arri.de \
    --cc=jic23@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=lars@metafoo.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lukasz.luba@arm.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=myungjoo.ham@samsung.com \
    --cc=pmeerw@pmeerw.net \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.