From patchwork Wed Jul 13 14:00:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 972222 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6DE2bpi012085 for ; Wed, 13 Jul 2011 14:02:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649Ab1GMOCg (ORCPT ); Wed, 13 Jul 2011 10:02:36 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:35760 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754627Ab1GMOCf convert rfc822-to-8bit (ORCPT ); Wed, 13 Jul 2011 10:02:35 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p6DE2W40014941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jul 2011 09:02:32 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6DE2W6J024795; Wed, 13 Jul 2011 09:02:32 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6DE1fYE001640; Wed, 13 Jul 2011 09:02:31 -0500 (CDT) thread-index: AcxBZWZzTRykxg4TR6aN2a5OLgC8Yw== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.12) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Wed, 13 Jul 2011 16:01:44 +0200 From: Tero Kristo To: CC: , , Subject: [PATCHv2 5/5] omap: voltage: changed parameter of omap_voltage_lookup to const Date: Wed, 13 Jul 2011 17:00:38 +0300 Message-ID: <1310565638-13140-6-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1310565638-13140-1-git-send-email-t-kristo@ti.com> References: <1310565638-13140-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 13 Jul 2011 14:02:37 +0000 (UTC) This fixes a couple of compilation warnings with OMAP SMPS regulator driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.c | 2 +- arch/arm/plat-omap/include/plat/voltage.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index 7e3c512..832fa7a 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c @@ -1036,7 +1036,7 @@ void omap_change_voltscale_method(struct voltagedomain *voltdm, * a pointer to the voltage domain structure corresponding to the * VDD. Else retuns error pointer. */ -struct voltagedomain *omap_voltage_domain_lookup(char *name) +struct voltagedomain *omap_voltage_domain_lookup(const char *name) { int i; diff --git a/arch/arm/plat-omap/include/plat/voltage.h b/arch/arm/plat-omap/include/plat/voltage.h index 46573bf..76d314c 100644 --- a/arch/arm/plat-omap/include/plat/voltage.h +++ b/arch/arm/plat-omap/include/plat/voltage.h @@ -159,7 +159,7 @@ int omap_voltage_register_pmic(struct voltagedomain *voltdm, void omap_change_voltscale_method(struct voltagedomain *voltdm, int voltscale_method); /* API to get the voltagedomain pointer */ -struct voltagedomain *omap_voltage_domain_lookup(char *name); +struct voltagedomain *omap_voltage_domain_lookup(const char *name); int omap_voltage_late_init(void); #else