From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932146AbWDJW2c (ORCPT ); Mon, 10 Apr 2006 18:28:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932147AbWDJW2c (ORCPT ); Mon, 10 Apr 2006 18:28:32 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:34834 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S932146AbWDJW2c (ORCPT ); Mon, 10 Apr 2006 18:28:32 -0400 Date: Tue, 11 Apr 2006 00:28:31 +0200 From: Adrian Bunk To: Andrew Morton Cc: James.Bottomley@HansenPartnership.com, linux-kernel@vger.kernel.org Subject: [2.6 patch] arch/i386/mach-voyager/voyager_cat.c: named initializers Message-ID: <20060410222831.GN2408@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch switches arch/i386/mach-voyager/voyager_cat.c to using named initializers for struct resource. Besides a fixing compile error in -mm, it makes the code better readable. Signed-off-by: Adrian Bunk --- This patch was already sent on: - 7 Apr 2006 arch/i386/mach-voyager/voyager_cat.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- linux-2.6.17-rc1-mm1-voyager/arch/i386/mach-voyager/voyager_cat.c.old 2006-04-07 00:18:01.000000000 +0200 +++ linux-2.6.17-rc1-mm1-voyager/arch/i386/mach-voyager/voyager_cat.c 2006-04-07 00:19:31.000000000 +0200 @@ -106,9 +106,15 @@ /* the I/O port assignments for the VIC and QIC */ static struct resource vic_res = { - "Voyager Interrupt Controller", 0xFC00, 0xFC6F }; + .name = "Voyager Interrupt Controller", + .start = 0xFC00, + .end = 0xFC6F +}; static struct resource qic_res = { - "Quad Interrupt Controller", 0xFC70, 0xFCFF }; + .name = "Quad Interrupt Controller", + .start = 0xFC70, + .end = 0xFCFF +}; /* This function is used to pack a data bit stream inside a message. * It writes num_bits of the data buffer in msg starting at start_bit.