Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp999989yba; Mon, 1 Apr 2019 23:35:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLK6LLPZUWM91VbexPiF5yAaV6wcsFr8Jf+qwc98JkSOTHBrnqM9NItSlBqy6ILpMF84Yl X-Received: by 2002:a63:c34a:: with SMTP id e10mr64509012pgd.194.1554186900512; Mon, 01 Apr 2019 23:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186900; cv=none; d=google.com; s=arc-20160816; b=o1GYxiSylVGYS5VMNgUxU+MdbevZXZV8SDdIpJrMnl1sSzUVrwnhIDu8wEnwcT/0x0 5gSblzKc7vOSIPGapO5ZXJf0WovG3OibVUQu1wM6lv+P6TpZVmcyxKj6iawqz0jYw7y7 Tw03C4WbpoCPLjaq/uIM8lziKEE90lkAB9Gt1ryaNL9rXcR2+PMpySAjkKA3QBMY4zXv 0I/Wc4cJecWkIyfmYORU5Wcj0bMmVF+0uHBywlolexSxO+61ONWQlyMYdtvPUlygjSeI e03lpdW4zTB/oBC6XFmZHDHmaH+je0B/2ndVOlYbtIZDbvfhSzdn4GxMgoaT51RPHXi4 gtbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K6TR0MKKqFzv/JFHfNJSn6dvEeDvf9PGgMl6oDHsxv8=; b=b8uvrV4fIW3plC1/NdTWELk5KlLdoBC4vyPd27VyDUfzFp8rzDMfcajwwaQNdv5OXs +yToWXeB+6cY1ce88OTkMhE+yhiDEyYSsO2HZOR0+pvOYG5Op5HHtYO62kQrqRjU0Eat Qz6rhJPLNQBaYNPW1PYW2K+pyCBXNE49+8GmdJmGXBP01WkqgUjYJ175YBmM793rsBy+ gaDyOTVXddHGLLbFJck7ciJqmjJbqGYlhdm1c4rtF1SjL5UP/FQxDmTs1e/RzVcuHOh+ at6CqPxnaiGH2cWrrehVlXKLQgtPgL4Q/dfPQJ+lz9HOeQIl+Ey6rN/papBPyrqs/DGu m8NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tWfpYMa9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si11062769plb.410.2019.04.01.23.34.45; Mon, 01 Apr 2019 23:35:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tWfpYMa9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729269AbfDBGce (ORCPT + 99 others); Tue, 2 Apr 2019 02:32:34 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33447 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbfDBGcd (ORCPT ); Tue, 2 Apr 2019 02:32:33 -0400 Received: by mail-pg1-f194.google.com with SMTP id b12so6042339pgk.0; Mon, 01 Apr 2019 23:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K6TR0MKKqFzv/JFHfNJSn6dvEeDvf9PGgMl6oDHsxv8=; b=tWfpYMa96jMsAtI81uTIs8XCZhfcLaS9GLo3Dd7VzEK6cFQ/WIuOeMD0Nkb2AT+Oyr 3itfZf9n5FTWIsKsP8SDdbhoMElcO8dxM23B8Fu2bJvUXGqzpSgq0+A64JOP1gxyUalV 5s2VuiyIDl+wusnIn5wMUfuEKyWs33YFC2UoREMWi1xwRVcXlgSr5jfM5lN/WJG14ukc dHGeuSTjZwpGnK5vfWlr0XHy936RKfCewLVP4MLil/9Ksbe4JtK9Kits9FFXZS2V9vZn SsSQ4XwTQbna90UmjOiXxdUwahdDmtxjbYS411OCZINncA1cIS4jgHUJJWxYF9dygxyg 6y3w== 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:mime-version:content-transfer-encoding; bh=K6TR0MKKqFzv/JFHfNJSn6dvEeDvf9PGgMl6oDHsxv8=; b=UylSZ1eecvC2+uAeEd2749SPXCfYGu3TmWSh5fF2cizshfuTJQ+eAmSRKnozqW8zw+ h043iaxdY4vDbgKXbs2Gy3Kj/khevpYsYq9XluTlgGnQNzf0BAo+5R6S1HmZho7m+0HQ 3H2A24i2RTSLZmBK5Dn0MithO2IQcsc9Chj/mQEf0rD3M2WVGvYX9fndAEAC/XE28K+l DXuq1UebXVtC/MwPqfArgt2J3a/Jlpl4R8bSn4ru75sFUD2r7fsJMiqqlQIQNEAt36uX K4x/KJNwUnYQlZZ2Zz1xlgxZjw/PRC49dZjcoa8SnJIPehr4+x25SiOvWW4AwUKxWTm0 N4uw== X-Gm-Message-State: APjAAAXEGEptypDUL9/mslqyPekGaXRgy8DVPYWi/J3z5RA6dykqd3of 7Anyg2bacpgNbLj99BFQo64= X-Received: by 2002:a63:e14e:: with SMTP id h14mr63716873pgk.184.1554186752567; Mon, 01 Apr 2019 23:32:32 -0700 (PDT) Received: from localhost.localdomain ([2001:268:c0a5:4ce0:c70:4af9:86e2:2]) by smtp.gmail.com with ESMTPSA id a17sm19327289pfj.123.2019.04.01.23.32.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 23:32:32 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: jic23@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, david@lechnology.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, daniel.lezcano@linaro.org, tglx@linutronix.de, thierry.reding@gmail.com, esben@haabendal.dk, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, patrick.havelange@essensium.com, William Breathitt Gray Subject: [PATCH v10 14/18] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines Date: Tue, 2 Apr 2019 15:30:49 +0900 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Havelange Common #defines have been moved to "linux/fsl/ftm.h". Thus making use of this file. Also FTM_SC_CLK_SHIFT has been renamed to FTM_SC_CLK_MASK_SHIFT. Reviewed-by: Esben Haabendal Signed-off-by: Patrick Havelange Signed-off-by: William Breathitt Gray --- drivers/clocksource/timer-fsl-ftm.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/clocksource/timer-fsl-ftm.c b/drivers/clocksource/timer-fsl-ftm.c index 846d18daf893..e1c34b2f53a5 100644 --- a/drivers/clocksource/timer-fsl-ftm.c +++ b/drivers/clocksource/timer-fsl-ftm.c @@ -19,20 +19,9 @@ #include #include #include +#include -#define FTM_SC 0x00 -#define FTM_SC_CLK_SHIFT 3 -#define FTM_SC_CLK_MASK (0x3 << FTM_SC_CLK_SHIFT) -#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_SHIFT) -#define FTM_SC_PS_MASK 0x7 -#define FTM_SC_TOIE BIT(6) -#define FTM_SC_TOF BIT(7) - -#define FTM_CNT 0x04 -#define FTM_MOD 0x08 -#define FTM_CNTIN 0x4C - -#define FTM_PS_MAX 7 +#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_MASK_SHIFT) struct ftm_clock_device { void __iomem *clksrc_base; -- 2.21.0