From patchwork Fri Sep 18 13:22:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 313194 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1333563ilg; Fri, 18 Sep 2020 06:23:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3OoQePx3NNamQWSmgxfka1a1l6KzZd2kqlNj9UYlEG82II4vIqcpFCgOxMBBYVcPuyyrp X-Received: by 2002:a17:906:3791:: with SMTP id n17mr35291976ejc.216.1600435416218; Fri, 18 Sep 2020 06:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600435416; cv=none; d=google.com; s=arc-20160816; b=uUDxuRfvlu8wfBKJJveufhK2JasPXlz3iBHc9riWSaQlqT/L2jHmrammbgn5FH78uC chbclfUlwbgSUjdbjklZyLMX9h3N/itEa1FJRCk8pidQgiM63v0k+RW4HanLpITbH8RA TUdbdt680fwEG/8eAt8NVE0KUZKfbS5Ul2C3Hnfsyn1QYyqVWcC2ki28di9nDnZdAjAK hKNCvndbJyCmKdW/8gNZY7MffUF9gU6S3La4kDk+XAVVkZHbNAk9+H7sZj83bmL13gsf OX2Y1J8PD2Uc7DLMAg0G/OGwY0Oc1BdJIWq8UCcc3rAAJuj17i/m6NKpSxRpgcHPRspD dhSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kQQ8K7DklrtrO+8OXb+dPTsxAw+9SEa3x4EuCPQnC5I=; b=pqBZ8jvCkkmuB4why0Y5ljlK61wnx1Si63VuudwWUXauXgAhED7tS16oW8xTzumNcl cPL4+62FHtAoIFoNnbVb58858TuiNyTLMfNJux7OMZE1Al13bI1aScbo3hsMKNyA2lZC 3m8CUyhVGB8/5hCzw54ggcRfPI5IbZs4fB7IduIogncg8+AX8G1y3Ir5nWp/mcMw/ra8 YMsPWaq0ZCkQObA7VUj4ojTDWws8jF7SWIxKDP8IyuWrIy19mzK/Bce9kc3CG6Gz2kGh CiVw2T+xOlYbHX7brR3z7bpbcnIjoylo2+XLZH2QWFA3Nklw6MQpadwC6VdSeYcezIPo NEtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si2094545edx.584.2020.09.18.06.23.36; Fri, 18 Sep 2020 06:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726843AbgIRNXf (ORCPT + 6 others); Fri, 18 Sep 2020 09:23:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13310 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726767AbgIRNXO (ORCPT ); Fri, 18 Sep 2020 09:23:14 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 94EF0F938245AE61D408; Fri, 18 Sep 2020 21:23:08 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 21:23:00 +0800 From: Zhen Lei To: Rob Herring , devicetree , Daniel Lezcano , Thomas Gleixner , Haojian Zhuang , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang , Jianguo Chen Subject: [PATCH v3 3/9] clocksource: sp804: delete the leading "__" of some functions Date: Fri, 18 Sep 2020 21:22:31 +0800 Message-ID: <20200918132237.3552-4-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200918132237.3552-1-thunder.leizhen@huawei.com> References: <20200918132237.3552-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Delete the leading "__" of __sp804_clocksource_and_sched_clock_init() and __sp804_clockevents_init(), make it looks a little more comfortable. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp804.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) -- 1.8.3 diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index 97b41a493253e0a..097f5a83163c6e1 100644 --- a/drivers/clocksource/timer-sp804.c +++ b/drivers/clocksource/timer-sp804.c @@ -65,10 +65,10 @@ static u64 notrace sp804_read(void) return ~readl_relaxed(sched_clock_base + TIMER_VALUE); } -int __init __sp804_clocksource_and_sched_clock_init(void __iomem *base, - const char *name, - struct clk *clk, - int use_sched_clock) +int __init sp804_clocksource_and_sched_clock_init(void __iomem *base, + const char *name, + struct clk *clk, + int use_sched_clock) { long rate; @@ -159,7 +159,8 @@ static int sp804_set_next_event(unsigned long next, .rating = 300, }; -int __init __sp804_clockevents_init(void __iomem *base, unsigned int irq, struct clk *clk, const char *name) +int __init sp804_clockevents_init(void __iomem *base, unsigned int irq, + struct clk *clk, const char *name) { struct clock_event_device *evt = &sp804_clockevent; long rate; @@ -228,21 +229,22 @@ static int __init sp804_of_init(struct device_node *np) of_property_read_u32(np, "arm,sp804-has-irq", &irq_num); if (irq_num == 2) { - ret = __sp804_clockevents_init(base + TIMER_2_BASE, irq, clk2, name); + ret = sp804_clockevents_init(base + TIMER_2_BASE, irq, clk2, name); if (ret) goto err; - ret = __sp804_clocksource_and_sched_clock_init(base, name, clk1, 1); + ret = sp804_clocksource_and_sched_clock_init(base, + name, clk1, 1); if (ret) goto err; } else { - ret = __sp804_clockevents_init(base, irq, clk1 , name); + ret = sp804_clockevents_init(base, irq, clk1, name); if (ret) goto err; - ret =__sp804_clocksource_and_sched_clock_init(base + TIMER_2_BASE, - name, clk2, 1); + ret = sp804_clocksource_and_sched_clock_init(base + TIMER_2_BASE, + name, clk2, 1); if (ret) goto err; } @@ -282,7 +284,8 @@ static int __init integrator_cp_of_init(struct device_node *np) goto err; if (!init_count) { - ret = __sp804_clocksource_and_sched_clock_init(base, name, clk, 0); + ret = sp804_clocksource_and_sched_clock_init(base, + name, clk, 0); if (ret) goto err; } else { @@ -290,7 +293,7 @@ static int __init integrator_cp_of_init(struct device_node *np) if (irq <= 0) goto err; - ret = __sp804_clockevents_init(base, irq, clk, name); + ret = sp804_clockevents_init(base, irq, clk, name); if (ret) goto err; }