From patchwork Mon Jan 8 13:28:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 123710 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2726773qgn; Mon, 8 Jan 2018 05:29:41 -0800 (PST) X-Google-Smtp-Source: ACJfBou+bO7F2lDwn7gPmA+bli6Ulq/yPt0n5x91loVYVqq8lX+KRyoYvxHYMvrxdlu6vkEGZMnx X-Received: by 10.99.116.19 with SMTP id p19mr9378539pgc.143.1515418180996; Mon, 08 Jan 2018 05:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515418180; cv=none; d=google.com; s=arc-20160816; b=SIY/khSxDd1dRGyDa2kc0PQDyI8uetg8yDg+2kkgSw3H3ZaLMa52FDTaNBIcQWoNEQ n8P8P4ebMShnOzUtA1l/GGuqZTeVv1OUb7CGRTfcx94WMFJW+6Ilef66NZYYho5aTZbh AwBadzScIwED/oC2LqYP5RUv9VqOV8Xq7ayxWJxIRKfvBOE7PS5mBIq2Ax8xRwGs18KO ehicKDJRoW4JWxwKLuGAaSzs6HGXndVYITANELdy/Ty4UlJBqD2HO5nFW5BebZ1U7OTt fCHRvzlfjLzaJwEhXKoIQaSOHft9m+YNSM5kYbEO/Bzw2U3q/OScmQ6q2RzXAW/3JOVG JuoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=IVQaqwbxR1fDeDz1QidnqgoKkiNpgkC+wjXwfvimFDM=; b=Ia0Ml+7a3heXmjy96OFbVAptXbIVFl9e5IrsFoI59a6MlWc67OW6ic1hGgsw81G2Js uRxcf0y+YGSKqIunugTm7Aq9GAoadj0FdCTMG98NeWrX1/lnC+o/q6EMkGssC8RrA10v Lsu9SqhSWGY8BU0SBseqVoLBEbXLnx7sC8iiSze9j9prRNTberQxWsaOQWSUgKQEASxk FYMPkzOtQyCPwyEZkeG7rY2IM9cHFzNYFlQ2dMJBysiSfLdnc3yC8hS321t66nFCNvP4 w5EQ+1PFzRZHTuiLUUzCUluHADLU7zdYpp3LCHhJMwMDRdRhRdbdCh8RXuzD6hZWf4MV IUcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rh1LHXxo; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si8363767pfi.337.2018.01.08.05.29.40; Mon, 08 Jan 2018 05:29:40 -0800 (PST) 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=@linaro.org header.s=google header.b=Rh1LHXxo; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933331AbeAHN3i (ORCPT + 28 others); Mon, 8 Jan 2018 08:29:38 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:41776 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932921AbeAHN3a (ORCPT ); Mon, 8 Jan 2018 08:29:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id g75so14218503wme.0 for ; Mon, 08 Jan 2018 05:29:29 -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=IVQaqwbxR1fDeDz1QidnqgoKkiNpgkC+wjXwfvimFDM=; b=Rh1LHXxolU6MHcn4k1XQwwG8+XbCaepUfTS4EjIzZTQv9k+/eEl5nJoTMIpxYwmxYu IDxRxFhHEyPdHjoJ9giGbjp+FBXzs41FyDmlJDrUCuC8S7d/OFQWONdE4wFf0bH+qmj+ He7CMLf7wPw5djtfmYnkWTdeoI4BFj148rnk4= 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=IVQaqwbxR1fDeDz1QidnqgoKkiNpgkC+wjXwfvimFDM=; b=qG6c1Ei/sTYWJHhn5WIM155fIqSY2pWWllnJigJsZHGXV7k+CPTyEcHoWmon+bRiy2 t8uVGYIFDiI9gu4iQYFgu+goQr171iEZ9RRlyyKkyAHGfUp0mskD/C2K5ljWC+PRPj3A iPQ6n1GmmeeeFSu45Zgw7K/bUEm9S0QPf4nsjb+UHBre4VGbUumvvw8d9w68CQ/VlfSv gteLYjBs1ATpN06nkP8yjOGC7RGgjnlGSWxG1ADexgbCP8rqLD8/mzhfP0qEihJmjt6c HvFro30SIl2/0VLbl4rByxwhAUCEQ/wL07l92HYEasC5rM88P1UysRCOWDbJ57LfrVZz TWpA== X-Gm-Message-State: AKGB3mIn7QdqjFeVV95zleb5aU4kYHg2WtGxdGeUVR6P86u7GU6SEMUk 6tga9nWjmyNGIQ/lqi6gbuz5qQ== X-Received: by 10.28.235.10 with SMTP id j10mr8435358wmh.54.1515418168818; Mon, 08 Jan 2018 05:29:28 -0800 (PST) Received: from mai.lan ([2001:41d0:fe90:b800:312a:53a5:1bef:6622]) by smtp.gmail.com with ESMTPSA id q196sm14354222wmb.22.2018.01.08.05.29.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jan 2018 05:29:28 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org Subject: [PATCH 05/20] clocksource/drivers/timer-of: Fix function names Date: Mon, 8 Jan 2018 14:28:44 +0100 Message-Id: <1515418139-23276-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515418139-23276-1-git-send-email-daniel.lezcano@linaro.org> References: <1bbaef2e-4080-3f54-7db3-a8989acfd691@free.fr> <1515418139-23276-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the functions are not prefixed with 'timer_of_', fix the naming in order to have the code consistent. Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-of.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) -- 2.7.4 diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index a319904..ad55654 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -24,7 +24,7 @@ #include "timer-of.h" -static __init void timer_irq_exit(struct of_timer_irq *of_irq) +static __init void timer_of_irq_exit(struct of_timer_irq *of_irq) { struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); @@ -34,8 +34,8 @@ static __init void timer_irq_exit(struct of_timer_irq *of_irq) free_irq(of_irq->irq, clkevt); } -static __init int timer_irq_init(struct device_node *np, - struct of_timer_irq *of_irq) +static __init int timer_of_irq_init(struct device_node *np, + struct of_timer_irq *of_irq) { int ret; struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); @@ -72,15 +72,15 @@ static __init int timer_irq_init(struct device_node *np, return 0; } -static __init void timer_clk_exit(struct of_timer_clk *of_clk) +static __init void timer_of_clk_exit(struct of_timer_clk *of_clk) { of_clk->rate = 0; clk_disable_unprepare(of_clk->clk); clk_put(of_clk->clk); } -static __init int timer_clk_init(struct device_node *np, - struct of_timer_clk *of_clk) +static __init int timer_of_clk_init(struct device_node *np, + struct of_timer_clk *of_clk) { int ret; @@ -116,13 +116,13 @@ static __init int timer_clk_init(struct device_node *np, goto out; } -static __init void timer_base_exit(struct of_timer_base *of_base) +static __init void timer_of_base_exit(struct of_timer_base *of_base) { iounmap(of_base->base); } -static __init int timer_base_init(struct device_node *np, - struct of_timer_base *of_base) +static __init int timer_of_base_init(struct device_node *np, + struct of_timer_base *of_base) { const char *name = of_base->name ? of_base->name : np->full_name; @@ -141,21 +141,21 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) int flags = 0; if (to->flags & TIMER_OF_BASE) { - ret = timer_base_init(np, &to->of_base); + ret = timer_of_base_init(np, &to->of_base); if (ret) goto out_fail; flags |= TIMER_OF_BASE; } if (to->flags & TIMER_OF_CLOCK) { - ret = timer_clk_init(np, &to->of_clk); + ret = timer_of_clk_init(np, &to->of_clk); if (ret) goto out_fail; flags |= TIMER_OF_CLOCK; } if (to->flags & TIMER_OF_IRQ) { - ret = timer_irq_init(np, &to->of_irq); + ret = timer_of_irq_init(np, &to->of_irq); if (ret) goto out_fail; flags |= TIMER_OF_IRQ; @@ -167,13 +167,13 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) out_fail: if (flags & TIMER_OF_IRQ) - timer_irq_exit(&to->of_irq); + timer_of_irq_exit(&to->of_irq); if (flags & TIMER_OF_CLOCK) - timer_clk_exit(&to->of_clk); + timer_of_clk_exit(&to->of_clk); if (flags & TIMER_OF_BASE) - timer_base_exit(&to->of_base); + timer_of_base_exit(&to->of_base); return ret; } @@ -187,11 +187,11 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) void __init timer_of_cleanup(struct timer_of *to) { if (to->flags & TIMER_OF_IRQ) - timer_irq_exit(&to->of_irq); + timer_of_irq_exit(&to->of_irq); if (to->flags & TIMER_OF_CLOCK) - timer_clk_exit(&to->of_clk); + timer_of_clk_exit(&to->of_clk); if (to->flags & TIMER_OF_BASE) - timer_base_exit(&to->of_base); + timer_of_base_exit(&to->of_base); }