From patchwork Fri May 23 10:31:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 30739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A34B2066E for ; Fri, 23 May 2014 10:42:27 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf22570586ieb.1 for ; Fri, 23 May 2014 03:42:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=gVfwPpXO5SJm/DQWduV7CPy811q6ko6kJ8/RBVHbtg0=; b=Huhmw7Zl+ylidNP8YHHdg6nHAGmSVyFqobMr3geYW3eu2Ofx6Y6kRG6HLu3pDbIxsQ syx0eYbVvlx4So3YNgvZ2RwxGxSf+CMQThRvaQnFyuAlPm5GnmkwtZL+5RJcn98la6FO dkaw/iLnjeHcF5pbLde4Y1tS9AfScfsdbZNoZscfDT78BDpLtgnAPXZc5C8cpstTDb1a MF/q2Yo/Z4LK1F5WYGLl1HNlU1gn1yBpbCmfDx6G3iorqT2JhaT1UtPxQS6jIb6F9bzV 2ak5ugQuqDNjJC2ztYtpt1DQVSOwMo3n1hMF8UsDrzDZPqB+5xabpFasjA0EzBrivtn2 5xqw== X-Gm-Message-State: ALoCoQmMAQ0ttUDQ9yWxkupRRMCsaukn8tGxtUdjGViceA+aI1C34t2uZ51DlmyR7TjWAmdTDVqN X-Received: by 10.51.17.10 with SMTP id ga10mr1231004igd.4.1400841747008; Fri, 23 May 2014 03:42:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.85 with SMTP id 79ls1696280qgk.41.gmail; Fri, 23 May 2014 03:42:26 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr3494410vcy.8.1400841746883; Fri, 23 May 2014 03:42:26 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id rv2si1404744vcb.4.2014.05.23.03.42.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id oz11so5967625veb.31 for ; Fri, 23 May 2014 03:42:26 -0700 (PDT) X-Received: by 10.52.14.130 with SMTP id p2mr1148191vdc.39.1400841746771; Fri, 23 May 2014 03:42:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp20420vcb; Fri, 23 May 2014 03:42:26 -0700 (PDT) X-Received: by 10.67.4.169 with SMTP id cf9mr4600107pad.45.1400841746015; Fri, 23 May 2014 03:42:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ws7si3284331pab.233.2014.05.23.03.42.25 for ; Fri, 23 May 2014 03:42:25 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbaEWKmR (ORCPT + 27 others); Fri, 23 May 2014 06:42:17 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:40437 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbaEWKc1 (ORCPT ); Fri, 23 May 2014 06:32:27 -0400 Received: by mail-we0-f175.google.com with SMTP id t61so4624591wes.20 for ; Fri, 23 May 2014 03:32:26 -0700 (PDT) X-Received: by 10.194.185.148 with SMTP id fc20mr3327246wjc.27.1400841146451; Fri, 23 May 2014 03:32:26 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-404-187.w82-125.abo.wanadoo.fr. [82.125.3.187]) by mx.google.com with ESMTPSA id s9sm2200908wix.13.2014.05.23.03.32.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:32:25 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 41/71] clocksource: sh_mtu2: Constify name argument to sh_mtu2_register() Date: Fri, 23 May 2014 12:31:21 +0200 Message-Id: <1400841111-6683-41-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400841111-6683-1-git-send-email-daniel.lezcano@linaro.org> References: <537F214C.8000700@linaro.org> <1400841111-6683-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Laurent Pinchart The name argument is assigned to const structure fields only, constify it. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index 8fd7059..2fe3ab4c 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c @@ -236,7 +236,7 @@ static void sh_mtu2_clock_event_resume(struct clock_event_device *ced) } static void sh_mtu2_register_clockevent(struct sh_mtu2_channel *ch, - char *name, unsigned long rating) + const char *name, unsigned long rating) { struct clock_event_device *ced = &ch->ced; int ret; @@ -264,7 +264,7 @@ static void sh_mtu2_register_clockevent(struct sh_mtu2_channel *ch, } } -static int sh_mtu2_register(struct sh_mtu2_channel *ch, char *name, +static int sh_mtu2_register(struct sh_mtu2_channel *ch, const char *name, unsigned long clockevent_rating) { if (clockevent_rating) @@ -287,7 +287,7 @@ static int sh_mtu2_setup_channel(struct sh_mtu2_channel *ch, return ch->irq; } - return sh_mtu2_register(ch, (char *)dev_name(&mtu->pdev->dev), + return sh_mtu2_register(ch, dev_name(&mtu->pdev->dev), cfg->clockevent_rating); }