From patchwork Fri May 23 10:30:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 30686 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F384A20369 for ; Fri, 23 May 2014 10:31:51 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id uq10sf1659841igb.5 for ; Fri, 23 May 2014 03:31:51 -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=2IYAlyhr57h+20cItu3RuAqdU6xzeUs/pyQgLA+teeo=; b=mVL37lWKeTdnxQcWhvU8haotJwUcqqK2Z76GVuMClqahWn3hHqDO4qnI6tXYNDtS2u m88zzmqOOuEl3fAcW3W28+Dg84RlCFHF8fxzECZ5P/a4ceW0Dqm6vjxnRVO0HthHggnT u6xcUefA5cOmOKx06poD/YBIcw+QM0P8xnIA6Jz5nEaw8++zGlzlLOZO70l2Hx4sUBmm 9sW28E2BO8wnFZs0B0H4VCGpvVI2NYSDaiAgepbCWHOVoW2rDwrOwLb+WKCe2ntdahex NchWtetQNuBwN12gVjbdBgZlE0+YxOqY0JcsLJjJqx+HgT7V7vtabyf/lFLiEYUAxh8k cibQ== X-Gm-Message-State: ALoCoQlbMUWvedxPQpQXnkBzzR7wTOCzU/IrIFnxJc54VBRYlKhXhcD94SJJSibUxDGR50a8vpmG X-Received: by 10.182.250.229 with SMTP id zf5mr1905223obc.4.1400841110927; Fri, 23 May 2014 03:31:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.74 with SMTP id w68ls1756640qgw.53.gmail; Fri, 23 May 2014 03:31:50 -0700 (PDT) X-Received: by 10.58.211.229 with SMTP id nf5mr3250478vec.19.1400841110788; Fri, 23 May 2014 03:31:50 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id vq3si1387725vdc.11.2014.05.23.03.31.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so5942456vcb.41 for ; Fri, 23 May 2014 03:31:50 -0700 (PDT) X-Received: by 10.58.29.234 with SMTP id n10mr3454470veh.16.1400841110705; Fri, 23 May 2014 03:31:50 -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 ib8csp19712vcb; Fri, 23 May 2014 03:31:50 -0700 (PDT) X-Received: by 10.66.66.135 with SMTP id f7mr4818527pat.22.1400841109801; Fri, 23 May 2014 03:31:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pr9si3223610pbc.175.2014.05.23.03.31.49 for ; Fri, 23 May 2014 03:31:49 -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 S1752415AbaEWKbp (ORCPT + 27 others); Fri, 23 May 2014 06:31:45 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:50791 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752220AbaEWKbn (ORCPT ); Fri, 23 May 2014 06:31:43 -0400 Received: by mail-wg0-f42.google.com with SMTP id y10so4531245wgg.1 for ; Fri, 23 May 2014 03:31:42 -0700 (PDT) X-Received: by 10.195.11.131 with SMTP id ei3mr3321962wjd.23.1400841102506; Fri, 23 May 2014 03:31:42 -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.31.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:31:41 -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 05/71] clocksource: sh_cmt: Constify name argument to sh_cmt_register() Date: Fri, 23 May 2014 12:30:45 +0200 Message-Id: <1400841111-6683-5-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.220.182 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 --- drivers/clocksource/sh_cmt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 26f73cf..febd6bf 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -549,7 +549,7 @@ static void sh_cmt_clocksource_resume(struct clocksource *cs) } static int sh_cmt_register_clocksource(struct sh_cmt_channel *ch, - char *name, unsigned long rating) + const char *name, unsigned long rating) { struct clocksource *cs = &ch->cs; @@ -660,7 +660,7 @@ static void sh_cmt_clock_event_resume(struct clock_event_device *ced) } static void sh_cmt_register_clockevent(struct sh_cmt_channel *ch, - char *name, unsigned long rating) + const char *name, unsigned long rating) { struct clock_event_device *ced = &ch->ced; @@ -680,7 +680,7 @@ static void sh_cmt_register_clockevent(struct sh_cmt_channel *ch, clockevents_register_device(ced); } -static int sh_cmt_register(struct sh_cmt_channel *ch, char *name, +static int sh_cmt_register(struct sh_cmt_channel *ch, const char *name, unsigned long clockevent_rating, unsigned long clocksource_rating) { @@ -717,7 +717,7 @@ static int sh_cmt_setup_channel(struct sh_cmt_channel *ch, ch->match_value = ch->max_match_value; raw_spin_lock_init(&ch->lock); - ret = sh_cmt_register(ch, (char *)dev_name(&cmt->pdev->dev), + ret = sh_cmt_register(ch, dev_name(&cmt->pdev->dev), cfg->clockevent_rating, cfg->clocksource_rating); if (ret) {