From patchwork Wed Feb 24 14:42:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 386864 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp477305jap; Wed, 24 Feb 2021 07:46:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOXpEc0BKHPOleFGq74lkwIvxcOjX5ybBf8ldXlwC/kUeqWjUn/eIP6Q4Gn2AyRlfrm3C7 X-Received: by 2002:a17:906:ca02:: with SMTP id jt2mr11544364ejb.312.1614181596319; Wed, 24 Feb 2021 07:46:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614181596; cv=none; d=google.com; s=arc-20160816; b=DtsbdSZS03SNVPO2HdkhIRYOwNYN9LSDOdzBnuMFBlhhkIiJdflguVRzmrYjTPlw0D q/XrY+Ah/k61n09eSfl+MkR0Kn4YRgZrOt+WvcHf2pmP5Mv4RWkLhRGNNQt6awJnN4LZ efnp8WIM4fmZ+T5tLfkIKZUJSId87akWirxtKPmpykpUwBLfR3H4tXOcjHjrXZV/OiO0 03LE5EfmR5N0dl0Ph2Jh2PXvhEn37OpWd9qe3gNRTIiMpWrTnEqOtdM4pMM5jClRZeRH BFKR1Uj+suQGAMf0s+EMpmjpTJinMWh3Kp+le7tVQx8DgbSKtO9l+3OzK9H9Nt3s1UM/ vMBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=65QKSsy3lkCh0TOg3Qv5eqQsbUSxRJSlb8pGltzsbn8=; b=EHqer+3F3gZX9i4wqQxxaFcGcTfIjnyLi35/h/SAGbq7R3l1mcz6SqN/s8Za+GZYGY Ran4fhWuft3zCVNEERfId+k03RJpWTzctblLyfJTPUO5pRAxW5oOzGY4RaSXNW7CUY8e 5nQzHgL2ZKKq6//K/AqufBpjcA8cRT3h3p7ICqGEOFGgh5UA86gbKtyo9sR6nMjZG+gS BArYi6KUyHHsxpDmRgDnPJkQdMAXQUFfCJPaBo4T2DKJiCSYVLyypxlqcviQrrdCefBD 51SuXkGZ0llI1jk/DdKXKLuPO2Ov0Q56gdWFGidf0oHvC5ukxGBQ93srfuNbtvJYTAVG 78Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aOA3X1qA; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs7si1660903ejc.128.2021.02.24.07.46.36; Wed, 24 Feb 2021 07:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aOA3X1qA; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235344AbhBXPpV (ORCPT + 3 others); Wed, 24 Feb 2021 10:45:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235738AbhBXOqm (ORCPT ); Wed, 24 Feb 2021 09:46:42 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDDBC0617AB for ; Wed, 24 Feb 2021 06:42:45 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id k66so2059053wmf.1 for ; Wed, 24 Feb 2021 06:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=65QKSsy3lkCh0TOg3Qv5eqQsbUSxRJSlb8pGltzsbn8=; b=aOA3X1qA/raiSVC1ONzrW+LerPrW/uegK5wztMiPKpR4vtgB/F+yAaSbciq1EvjRSh FOdC/O/q7THZDizqc/NnyhjJmS23bM3YuMcLqP5zPyvvUDRKoGrk/dtBqHxHK5mrW23F AuZOKuCPrbA+B3eyK+EjBJ6u0PfzHZER8tL/j51qvj3MTwj6kiSMLnDJeb9jKwP4rAaA jKCtIZ1dgXiSsII+pIKTSqplrMcvPhG+5hAwFZ+YzJCUG8amw/iU4iNZziUQqj8wfsh3 B6YyMmZnDwRwpEv7ogeHvRG4Wp9Tbuee6HSBbLQGGB3IyRlp+5wb1Eaw9Vd6JqpT1kTE 7y7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=65QKSsy3lkCh0TOg3Qv5eqQsbUSxRJSlb8pGltzsbn8=; b=PswuGb1BHgdXiNv5RP0LZShrDl6lDYBKY7PgMjgwkb/Cbxh0Hkt8qrJdHGzlFfrYX9 xPKqOi3PSimcwvTv+/kINVyjL2COfokvcTx1nqVQV2v33JFW5YSM9YoOnt0Wc19psRR7 o/g4ccTCUWqI5tnKJE9mXn3Wvi+0pi3B21VdGxI0+gOEBc1HVLeP608giJjuKRFzzAEl t9fjR1QPh/7hyeqMm/OlDM82e7i+tuJXfcSGI0atKmTRXsiIwl9kat+idQznX115d6Js jh4uRPM+JGdEcOATQM7x9WUrBmuh3k8wluV7FF4pTm8sX8j8UISheC5pDriNvgSpO+J+ ZXIA== X-Gm-Message-State: AOAM531yLTLFuMefI/+zqJscpg37fAt8KE87P2BEo7X33YxrOdrL3JYm KHghTpacdoAC5MOGpJjo2UMnkLqNsJtAeA== X-Received: by 2002:a1c:20c7:: with SMTP id g190mr4040398wmg.156.1614177763949; Wed, 24 Feb 2021 06:42:43 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-157-252.adsl.proxad.net. [82.252.157.252]) by smtp.gmail.com with ESMTPSA id p3sm4170669wro.55.2021.02.24.06.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:43 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, Dongchun Zhu , Mauro Carvalho Chehab , linux-media@vger.kernel.org (open list:OMNIVISION OV02A10 SENSOR DRIVER) Subject: [PATCH v2 7/9] i2c/drivers/ov02q10: Use HZ macros Date: Wed, 24 Feb 2021 15:42:17 +0100 Message-Id: <20210224144222.23762-7-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> References: <20210224144222.23762-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano --- drivers/media/i2c/ov02a10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/media/i2c/ov02a10.c b/drivers/media/i2c/ov02a10.c index 8683ffd3287a..59a34e59774e 100644 --- a/drivers/media/i2c/ov02a10.c +++ b/drivers/media/i2c/ov02a10.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -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)