From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763572AbYEGHog (ORCPT ); Wed, 7 May 2008 03:44:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753295AbYEGHoN (ORCPT ); Wed, 7 May 2008 03:44:13 -0400 Received: from zone0.gcu-squad.org ([212.85.147.21]:27108 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657AbYEGHoL (ORCPT ); Wed, 7 May 2008 03:44:11 -0400 Date: Wed, 7 May 2008 09:43:43 +0200 From: Jean Delvare To: Geert Uytterhoeven Cc: "Maciej W. Rozycki" , Alessandro Zummo , Ralf Baechle , Thomas Gleixner , Andrew Morton , rtc-linux@googlegroups.com, i2c@lm-sensors.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, David Brownell Subject: Re: [RFC][PATCH 2/4] RTC: SWARM I2C board initialization Message-ID: <20080507094343.25f279b9@hyperion.delvare> In-Reply-To: References: <20080507090514.3a86cf4b@hyperion.delvare> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.10.6; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Wed, 7 May 2008 09:37:01 +0200 (CEST), Geert Uytterhoeven wrote: > On Wed, 7 May 2008, Jean Delvare wrote: > > Oh, BTW... > > > > On Wed, 7 May 2008 01:40:27 +0100 (BST), Maciej W. Rozycki wrote: > > > (...) > > > 1. i2c-swarm.c -- SWARM I2C board setup, currently for the M41T80 chip on > > > the bus #1 only. > > > (...) > > > --- linux-2.6.26-rc1-20080505.macro/arch/mips/sibyte/swarm/Makefile 2004-01-29 04:57:05.000000000 +0000 > > > +++ linux-2.6.26-rc1-20080505/arch/mips/sibyte/swarm/Makefile 2008-05-06 01:18:21.000000000 +0000 > > > @@ -1,3 +1,4 @@ > > > -lib-y = setup.o rtc_xicor1241.o rtc_m41t81.o > > > +obj-y := setup.o rtc_xicor1241.o rtc_m41t81.o > > > > > > -lib-$(CONFIG_KGDB) += dbg_io.o > > > +obj-$(CONFIG_I2C_BOARDINFO) += i2c-swarm.o > > > +obj-$(CONFIG_KGDB) += dbg_io.o > > > (...) > > > --- linux-2.6.26-rc1-20080505.macro/arch/mips/sibyte/swarm/i2c-swarm.c 1970-01-01 00:00:00.000000000 +0000 > > > +++ linux-2.6.26-rc1-20080505/arch/mips/sibyte/swarm/i2c-swarm.c 2008-05-06 23:51:34.000000000 +0000 > > > > i2c-foo.c is consistently used for i2c bus driver themselves so far. > > It's somewhat confusing to see you name platform code that way. It's > > also redundant, given that the file lives in the swarm platform > > directory. May I suggest naming this file just > > arch/mips/sibyte/swarm/i2c.c? Other architectures (cris, arm) are doing > > this already. > > Is there any chance CONFIG_I2C_BOARDINFO could become tristate? > If yes, it's problematic if you have multiple modules called i2c.ko. No, CONFIG_I2C_BOARDINFO is boolean by nature, it will never become tristate. -- Jean Delvare