From patchwork Wed Dec 23 13:16:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 41663 Return-Path: <3NRgySwgKCco901qA8u7ty89q3F.sx79s-1y3ADw44w1uw74A58.s42@listserv.bounces.google.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yw0-f146.google.com (mail-yw0-f146.google.com [209.85.211.146]) by ozlabs.org (Postfix) with ESMTP id D94FCB7BE5 for ; Thu, 24 Dec 2009 00:16:38 +1100 (EST) Received: by ywh10 with SMTP id 10sf20000066ywh.1 for ; Wed, 23 Dec 2009 05:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:from:to :cc:subject:date:message-id:x-mailer:x-pmx-version:x-perlmx-spam :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-unsubscribe:list-subscribe :content-type; bh=08/3GqFNw/78aEHTFZmhh/+uSIiqS1kvMXix2L8CgHE=; b=HN9b9pwQ9NsfRsquixI6ZVfJWJFahtIBIUkKiBjj/Pcj8sgB9ZUOOa9xtUaO+xlpcc ui+kec5C97wlehyPxO3t2CX/ojlPJpyQxUmiAuLhfKPivoB4ZlEO1koHFXdDgPQ41D3g 6wDsLqmGssDlOy6f3G0NBSIZgc/Z9u2/bBVDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-pmx-version:x-perlmx-spam :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-unsubscribe:list-subscribe :content-type; b=gl/8woXXX7l44WYB4UvORjqKecS3j4SjI0932qpNyyb39IMmQpluFMwWP9r7in0QlR I1UN9Rk8vm0IONYQ866sqaUCqniV1zu2VUCpfeLqtm0iUIEtewXGQEA8LJEuUFAXNapz MncTm0lcdfBxwhwAWn7ibksBVVz6jpwSrhc4s= Received: by 10.101.133.26 with SMTP id k26mr586268ann.8.1261574197096; Wed, 23 Dec 2009 05:16:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.213.57.18 with SMTP id a18ls403992ebh.3.p; Wed, 23 Dec 2009 05:16:35 -0800 (PST) Received: by 10.213.100.7 with SMTP id w7mr51227ebn.2.1261574195529; Wed, 23 Dec 2009 05:16:35 -0800 (PST) Received: by 10.213.100.7 with SMTP id w7mr51226ebn.2.1261574195492; Wed, 23 Dec 2009 05:16:35 -0800 (PST) Received: from mx2.zhaw.ch (mx2.zhaw.ch [160.85.104.51]) by gmr-mx.google.com with ESMTP id 18si1014293ewy.8.2009.12.23.05.16.35; Wed, 23 Dec 2009 05:16:35 -0800 (PST) Received-SPF: neutral (google.com: 160.85.104.51 is neither permitted nor denied by best guess record for domain of tklauser@distanz.ch) client-ip=160.85.104.51; Received: from mx2.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id DA9AB3EE; Wed, 23 Dec 2009 14:16:34 +0100 (CET) Received: from localhost.localdomain (staff-klto-0.zhaw.ch [160.85.232.122]) by mx2.zhaw.ch (Postfix) with ESMTP id 93AC43EC; Wed, 23 Dec 2009 14:16:34 +0100 (CET) From: Tobias Klauser To: Paul Gortmaker , Alessandro Zummo Cc: rtc-linux@googlegroups.com, Tobias Klauser Subject: [rtc-linux] [PATCH] rtc: Storage class should be before const qualifier Date: Wed, 23 Dec 2009 14:16:31 +0100 Message-Id: <1261574191-9300-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 1.6.3.3 X-PMX-Version: 5.5.8.383112, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2009.12.23.130316 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NS ' X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 160.85.104.51 is neither permitted nor denied by best guess record for domain of tklauser@distanz.ch) smtp.mail=tklauser@distanz.ch X-Original-Sender: tklauser@distanz.ch Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rtc-linux/t/d3f8f641454f6e33 X-Message-Url: http://groups.google.com/group/rtc-linux/msg/4f81a3162e265515 Sender: rtc-linux@googlegroups.com List-Unsubscribe: , List-Subscribe: , The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser --- drivers/rtc/rtc-twl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index c6a83a2..ed1b868 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c @@ -57,7 +57,7 @@ enum { REG_RTC_COMP_LSB_REG, REG_RTC_COMP_MSB_REG, }; -const static u8 twl4030_rtc_reg_map[] = { +static const u8 twl4030_rtc_reg_map[] = { [REG_SECONDS_REG] = 0x00, [REG_MINUTES_REG] = 0x01, [REG_HOURS_REG] = 0x02, @@ -80,7 +80,7 @@ const static u8 twl4030_rtc_reg_map[] = { [REG_RTC_COMP_LSB_REG] = 0x10, [REG_RTC_COMP_MSB_REG] = 0x11, }; -const static u8 twl6030_rtc_reg_map[] = { +static const u8 twl6030_rtc_reg_map[] = { [REG_SECONDS_REG] = 0x00, [REG_MINUTES_REG] = 0x01, [REG_HOURS_REG] = 0x02,