devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Caesar Wang <wxt@rock-chips.com>
To: heiko@sntech.de, daniel.lezcano@linaro.org, will.deacon@arm.com,
	catalin.marinas@arm.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	Caesar Wang <wxt@rock-chips.com>
Subject: [PATCH v2 2/4] clocksource: rockchip: trivial: Make the driver more readability
Date: Fri, 25 Sep 2015 10:14:56 +0800	[thread overview]
Message-ID: <1443147298-12603-3-git-send-email-wxt@rock-chips.com> (raw)
In-Reply-To: <1443147298-12603-1-git-send-email-wxt@rock-chips.com>

Let's checkstyle to clean up the macros with such trivial details.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---

Changes in v2: None
Changes in v1: None

 drivers/clocksource/rockchip_timer.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/drivers/clocksource/rockchip_timer.c b/drivers/clocksource/rockchip_timer.c
index 3ace7ac..9ed662a 100644
--- a/drivers/clocksource/rockchip_timer.c
+++ b/drivers/clocksource/rockchip_timer.c
@@ -17,16 +17,16 @@
 
 #define TIMER_NAME "rk_timer"
 
-#define TIMER_LOAD_COUNT0 0x00
-#define TIMER_LOAD_COUNT1 0x04
-#define TIMER_CONTROL_REG 0x10
-#define TIMER_INT_STATUS 0x18
+#define TIMER_LOAD_COUNT0	0x00
+#define TIMER_LOAD_COUNT1	0x04
+#define TIMER_CONTROL_REG	0x10
+#define TIMER_INT_STATUS	0x18
 
-#define TIMER_DISABLE 0x0
-#define TIMER_ENABLE 0x1
-#define TIMER_MODE_FREE_RUNNING (0 << 1)
-#define TIMER_MODE_USER_DEFINED_COUNT (1 << 1)
-#define TIMER_INT_UNMASK (1 << 2)
+#define TIMER_DISABLE		0x0
+#define TIMER_ENABLE		0x1
+#define TIMER_MODE_FREE_RUNNING			(0 << 1)
+#define TIMER_MODE_USER_DEFINED_COUNT		(1 << 1)
+#define TIMER_INT_UNMASK			(1 << 2)
 
 struct bc_timer {
 	struct clock_event_device ce;
@@ -173,4 +173,5 @@ static void __init rk_timer_init(struct device_node *np)
 
 	clockevents_config_and_register(ce, bc_timer.freq, 1, UINT_MAX);
 }
+
 CLOCKSOURCE_OF_DECLARE(rk_timer, "rockchip,rk3288-timer", rk_timer_init);
-- 
1.9.1

  parent reply	other threads:[~2015-09-25  2:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25  2:14 [PATCH v2 0/4] Support the timer on RK3368 SoC Caesar Wang
2015-09-25  2:14 ` [PATCH v2 1/4] clocksource: rockchip: Make the driver more compatible Caesar Wang
2015-09-29  4:18   ` Daniel Lezcano
2015-09-30 19:14     ` Heiko Stübner
2015-10-30  3:43       ` Caesar Wang
2015-10-30 10:42         ` Daniel Lezcano
     [not found]           ` <56334995.6090103-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-10-30 23:47             ` Heiko Stuebner
2015-10-31 13:04               ` Daniel Lezcano
2015-11-02 17:28               ` Daniel Lezcano
     [not found]                 ` <56379D46.1000402-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-11-03  2:00                   ` Caesar Wang
     [not found]                     ` <56381547.5070109-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-03  8:32                       ` Daniel Lezcano
     [not found]                         ` <56387110.4060805-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-11-03  9:59                           ` Caesar Wang
2015-09-25  2:14 ` Caesar Wang [this message]
2015-09-29  4:18   ` [PATCH v2 2/4] clocksource: rockchip: trivial: Make the driver more readability Daniel Lezcano
2015-09-25  2:14 ` [PATCH v2 3/4] arm64: Enable the timer on Rockchip architecture Caesar Wang
     [not found]   ` <1443147298-12603-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-25 13:51     ` Heiko Stübner
2015-09-25  2:14 ` [PATCH v2 4/4] arm64: dts: rockchip: Add the needed timer for RK3368 SoC Caesar Wang
2015-12-13  0:47   ` Heiko Stübner

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=1443147298-12603-3-git-send-email-wxt@rock-chips.com \
    --to=wxt@rock-chips.com \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=will.deacon@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).