From patchwork Wed Feb 24 14:42:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 386863 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp430098jap; Wed, 24 Feb 2021 06:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJynJQKaY+Oojy3XPbIuQX14jYSOA0KRPgkYf0/J9MYoQaltxsFqzOEt41D4rc94f8Q8f0jT X-Received: by 2002:a05:620a:998:: with SMTP id x24mr30603850qkx.364.1614177800269; Wed, 24 Feb 2021 06:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614177800; cv=none; d=google.com; s=arc-20160816; b=aZwOSk0NS43pigt7V23AjGFFmqgKzMVpBaBIGC5qRGVtQ92lJE95GQ2/sF2jRJPent RnJp+cwID3LyvsNMVdXzaaMg2opTKsZxzhsKJxB+ymvq07idJJIuhkZ3OXrd9rXQqc/z QfP71rOdfZiIv4o9d+e70WdD0KzjcODPHUXigt0J2BDdq7U3+X/n85oya9BII79fPnhv OTSFxzEn/H7KIe2DnsvwbLc9P7E0wr+7uVt7o1NSQ23Fdnv2tfdAeGXA5PFEImrpxVX3 X5jg4aEqjWxj2pMrVU8aGgBAZaIDMBlN3PRSi59uztOgxX3mUY+ai8xGSMq1alsStgWz CZmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-signature; bh=8v1FauMXqPbKIlIyzT/6TKUwrqMxykydD3eobTNpymw=; b=oKEDOh0mFPE9IHAOPtuOTJVAxcRilH1n71MVEVaL0B3BviDwJCajG1krQTVVo7HJ9Z lEOm0sq44cDH7yjGrLSNBqV8eeGXkVSGQoAp+QhMgkTysf2G8M0Vh7CsnURQWxnc2x9M vOo2HIre3Rf0K1sNOg0UNuYGZ9Spak9Ew6EZ6z4pUTfkKM3FxUyUic1WmnIQ4hFSQlXC CZvxZHvJf2Jcl4xqgqZDo6NO6gir1I859jXwt5TKfwH5LMHABli5L9QPHKjU12qP+RFW wEqXWba5TYdFz9cKPi9u0OhxY/Xqu1mfjFvdN12LR4fKWHjvpFkAhXmMjJ5QPJIvgQlf xgEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=AI2sG99F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=xZoc3hBI; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id im1si1110449qvb.127.2021.02.24.06.43.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:43:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=AI2sG99F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=xZoc3hBI; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8v1FauMXqPbKIlIyzT/6TKUwrqMxykydD3eobTNpymw=; b=AI2sG99FrY3OuTb7x5WWNb7z81 +bgLNQR0X135CgBZUp+GyTF5zj7+CIPFaui5exxPQ+a8FLvc6GtRp73ff6JIINadqVVh5kZcpARiS /6w23xu9vOzmn3PZMQSNB9xquxNQMKrPK1AqQk8BekkfrPc46Q9MiB4macIUNhDXYZ/JXaVIEOoJF /xw5baXMXtnDYlv13/GomFPcdtF1CT1YM5kOJBp9rYOhoLJHrOUy3H9YYeD7gOASC4VV9YuriT2kS IbIhvaNcXdz/fLQm3/VwfObkyC2pGDsvVZdUsAy2w2c5e8mXOUwSEXxZxTa2ge2qhzw1uWAf2SP6y Pwf9BsgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEvNS-0004mU-HL; Wed, 24 Feb 2021 14:42:58 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEvNQ-0004lq-TI for linux-mtd@lists.infradead.org; Wed, 24 Feb 2021 14:42:57 +0000 Received: by mail-wr1-x436.google.com with SMTP id u14so2141872wri.3 for ; Wed, 24 Feb 2021 06:42:54 -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=Avv6ZnmbXhgqra1UyQEo1jRqhDV3UEf0fLOb0eDNvQ8=; b=xZoc3hBIVPJJapaC73bDrdlHYiWZTC8Gd5hvzDsj5M/0Gmhz+TXWHtcm5ek2a1poNV ufUQz4YRuGlHWn+djwpPnG9idrsPzvLehgF63M9vJvSXI8aVjU4M97Uy+pXPo2/Us43J pEqwK11wGB8W530jG5HXEptjsuh/Y36OJDe1Dmep04wvfMYezvrwLaQ0al88G8e6zgRU Vr7hrMVjWud3ibSLkxTEMDiQ1mDXzl2/mZCo16DovjoH1aOD0X5nL90um2wcxiB54xyo Pie/uMq/0ZQfO4BXsL8cSZaHcFK29gXfL5l267/39eAo19HMzGdVIRcyqugLzSAV4IhR YPuw== 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=Avv6ZnmbXhgqra1UyQEo1jRqhDV3UEf0fLOb0eDNvQ8=; b=FU+9CQkyV8PdLWq13/3fR5bQVgdzDaGXnrMkxlV+kbKyURyINw+pFEnYZPSYUFOfyk NDj8OqV19jp/yZI8dzhw+r0uFPSU9oKxUSrWdo/f6yYqYGPiYRVPa0Xq3rNPl5gUiBjy Ck1FgxUkLjDy2Pm4l5ai7bbqfc8py4FuA56caeoyTvHy5sSGhB99ErW849P69WM0Tuc/ 9p4PlKy5mGVqzCU3EU7tO5kC9MSaZ/jDQzJz5GkaoDH7b5Q26pCC8dAm1L7trptD77er qrSM/+Tu5AhJQ//hJnbLNbRKVB8nG9IFFRvT0RgYxwQjYCY6GuJ2YesYxNSxL/D7L4FG uHTQ== X-Gm-Message-State: AOAM533XsXDJRPaWys79+Enoq31vO4vn/Ja4vqRZERaVcb+Fql9Kf9mK xVeIhtnAQH5OePZN1a5ioz1z1A== X-Received: by 2002:a5d:44d2:: with SMTP id z18mr32219677wrr.26.1614177773751; Wed, 24 Feb 2021 06:42:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 06:42:53 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, andriy.shevchenko@linux.intel.com Subject: [PATCH v2 8/9] mtd/drivers/nand: Use HZ macros Date: Wed, 24 Feb 2021 15:42:18 +0100 Message-Id: <20210224144222.23762-8-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210224_094257_087696_17A0959F X-CRM114-Status: GOOD ( 14.17 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:436 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vignesh Raghavendra , Martin Blumenstingl , Richard Weinberger , linux-kernel@vger.kernel.org, Ramuthevar Vadivel Murugan , "open list:NAND FLASH SUBSYSTEM" , Miquel Raynal MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano --- drivers/mtd/nand/raw/intel-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ Acked-by: Miquel Raynal diff --git a/drivers/mtd/nand/raw/intel-nand-controller.c b/drivers/mtd/nand/raw/intel-nand-controller.c index a304fda5d1fa..8d00191a4815 100644 --- a/drivers/mtd/nand/raw/intel-nand-controller.c +++ b/drivers/mtd/nand/raw/intel-nand-controller.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #define EBU_CLC 0x000 @@ -102,7 +103,6 @@ #define MAX_CS 2 -#define HZ_PER_MHZ 1000000L #define USEC_PER_SEC 1000000L struct ebu_nand_cs {