From patchwork Fri Nov 18 16:49:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerlando Falauto X-Patchwork-Id: 126449 X-Patchwork-Delegate: wd@denx.de 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 E302EB7222 for ; Sat, 19 Nov 2011 03:49:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 86DB928B56; Fri, 18 Nov 2011 17:49:51 +0100 (CET) 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 pnhJogNWWGBx; Fri, 18 Nov 2011 17:49:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 086D228B29; Fri, 18 Nov 2011 17:49:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B674828A15 for ; Fri, 18 Nov 2011 17:49:44 +0100 (CET) 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 hcMC7FO7-uLm for ; Fri, 18 Nov 2011 17:49:44 +0100 (CET) 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.de.keymile.com (mail.de.keymile.com [195.8.104.1]) by theia.denx.de (Postfix) with SMTP id B051A284D0 for ; Fri, 18 Nov 2011 17:49:36 +0100 (CET) Received: from mailrelay.de.keymile.net ([10.9.1.54]) by eSafe SMTP Relay 1321520839; Fri, 18 Nov 2011 17:49:35 +0100 Received: from chber1-10555x.ch.keymile.net (chber1-10555x.ch.keymile.net [172.31.31.112]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id pAIGn6jQ017405; Fri, 18 Nov 2011 17:49:16 +0100 (MET) From: Gerlando Falauto To: u-boot@lists.denx.de Date: Fri, 18 Nov 2011 17:49:12 +0100 Message-Id: <1321634955-5561-3-git-send-email-gerlando.falauto@keymile.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1321634955-5561-1-git-send-email-gerlando.falauto@keymile.com> References: <1321634955-5561-1-git-send-email-gerlando.falauto@keymile.com> X-ESAFE-STATUS: [srvhellgate.de.keymile.net] Mail clean Cc: holger.brunck@keymile.com, Gerlando Falauto Subject: [U-Boot] [PATCH v1 2/5] serial: constify serial_assign() 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 Signed-off-by: Gerlando Falauto Acked-by: Mike Frysinger --- common/serial.c | 2 +- include/serial.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/serial.c b/common/serial.c index 03bbb19..75cc1bb 100644 --- a/common/serial.c +++ b/common/serial.c @@ -149,7 +149,7 @@ void serial_stdio_init(void) } } -int serial_assign(char *name) +int serial_assign(const char *name) { struct serial_device *s; diff --git a/include/serial.h b/include/serial.h index 9d623ca..fbc1036 100644 --- a/include/serial.h +++ b/include/serial.h @@ -93,7 +93,7 @@ extern struct serial_device bfin_serial3_device; extern void serial_register(struct serial_device *); extern void serial_initialize(void); extern void serial_stdio_init(void); -extern int serial_assign(char *name); +extern int serial_assign(const char *name); extern void serial_reinit_all(void); /* For usbtty */