From patchwork Mon Oct 8 21:42:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 190132 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 260652C0335 for ; Tue, 9 Oct 2012 08:44:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5FBBC281CC; Mon, 8 Oct 2012 23:44:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y8DtdLopvuRG; Mon, 8 Oct 2012 23:44:26 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5BA7B28189; Mon, 8 Oct 2012 23:44:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 533292819B for ; Mon, 8 Oct 2012 23:44:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GX8+sID8IPhb for ; Mon, 8 Oct 2012 23:44:12 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id 42A4328187 for ; Mon, 8 Oct 2012 23:44:10 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id 10so435096yhl.3 for ; Mon, 08 Oct 2012 14:44:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=0tBE/wLHLAQoIDO3K9Pt9bhpp91MmZujeBa7sYcArLM=; b=nmYarI+XjkRhS9VCjGW7JK6+0tje1UXpAFsgQcWuY69BlQdvDSC6XJM8WQRjpGhyE4 pfcJ/nt/nzZOGSR6vNTk/4f4Eb+nVi243jhxf07Bw10g3ZiRwHoFG5P8REeBm/D0dD/K ih7GGugENTp1vwt5QcknglvzENIHlSei8hAO1o6NbFNSUzQGkGGhjM6fZXlIjhu2n5Aa MABIXklC2+hAvRdyzguJsh99Mlifh1fbzpW+8W0LcPKgudK2ICCnM9bAqjXGAB7DAKWu pZ1YInPHXa1FlxGCG8ciRmWl0udFwwKNUidUxnqv/zbCvpZeTBWIZzrJUL1ySuMq1nlD lJhg== Received: by 10.236.129.106 with SMTP id g70mr13479090yhi.49.1349732649374; Mon, 08 Oct 2012 14:44:09 -0700 (PDT) Received: from wpzn4.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id o6si4440367yhn.7.2012.10.08.14.44.09 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 08 Oct 2012 14:44:09 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn4.hot.corp.google.com (Postfix) with ESMTP id 4667C1E0043; Mon, 8 Oct 2012 14:44:09 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id F28AE160D02; Mon, 8 Oct 2012 14:44:08 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 8 Oct 2012 14:42:21 -0700 Message-Id: <1349732556-30700-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1349732556-30700-1-git-send-email-sjg@chromium.org> References: <1349732556-30700-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQknaIU8Hrj17jsJ0bCODmNoBvpdO8RkwPx9vKB6a/ey4na+JcQ167pveaT+YFh/Do7x/lVVJBFt+75aOeyxJKUmzJ9yUJhZBtg7mvaY9M9l7aNlzofXKrKFSa4H9ztwcI5iG44fXKmoqpelUoYzt3f4gfbG1VGmb4p2dXFx32UxehxDi5kMEamfojiwr7LsmaxHfyvM Cc: Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH v5 01/16] tegra: Use const for pinmux_config_pingroup/table() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de These two functions don't actually modify their arguments so add a const keyword. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- Changes in v2: - Add new patch to use const in pinmux_config_pingroup/table() arch/arm/cpu/tegra20-common/pinmux.c | 4 ++-- arch/arm/include/asm/arch-tegra20/pinmux.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/tegra20-common/pinmux.c b/arch/arm/cpu/tegra20-common/pinmux.c index 08b8305..a2a0916 100644 --- a/arch/arm/cpu/tegra20-common/pinmux.c +++ b/arch/arm/cpu/tegra20-common/pinmux.c @@ -554,7 +554,7 @@ void pinmux_set_func(enum pmux_pingrp pin, enum pmux_func func) writel(reg, muxctl); } -void pinmux_config_pingroup(struct pingroup_config *config) +void pinmux_config_pingroup(const struct pingroup_config *config) { enum pmux_pingrp pin = config->pingroup; @@ -563,7 +563,7 @@ void pinmux_config_pingroup(struct pingroup_config *config) pinmux_set_tristate(pin, config->tristate); } -void pinmux_config_table(struct pingroup_config *config, int len) +void pinmux_config_table(const struct pingroup_config *config, int len) { int i; diff --git a/arch/arm/include/asm/arch-tegra20/pinmux.h b/arch/arm/include/asm/arch-tegra20/pinmux.h index 03fa7ca..797e158 100644 --- a/arch/arm/include/asm/arch-tegra20/pinmux.h +++ b/arch/arm/include/asm/arch-tegra20/pinmux.h @@ -339,7 +339,7 @@ void pinmux_set_pullupdown(enum pmux_pingrp pin, enum pmux_pull pupd); void pinmux_set_func(enum pmux_pingrp pin, enum pmux_func func); /* Set the complete configuration for a pin group */ -void pinmux_config_pingroup(struct pingroup_config *config); +void pinmux_config_pingroup(const struct pingroup_config *config); void pinmux_set_tristate(enum pmux_pingrp pin, int enable); @@ -349,6 +349,6 @@ void pinmux_set_tristate(enum pmux_pingrp pin, int enable); * @param config List of config items * @param len Number of config items in list */ -void pinmux_config_table(struct pingroup_config *config, int len); +void pinmux_config_table(const struct pingroup_config *config, int len); #endif /* PINMUX_H */