From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from services.gcu-squad.org (zone0.gcu-squad.org [212.85.147.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6A6E7DDE0F for ; Tue, 29 Apr 2008 22:49:30 +1000 (EST) Date: Tue, 29 Apr 2008 14:49:16 +0200 From: Jean Delvare To: "Jon Smirl" Subject: Re: [PATCH 1/2 v2] i2c: Add support for device alias names Message-ID: <20080429144916.59b46313@hyperion.delvare> In-Reply-To: <9e4733910804290516g1fd0b653jae63e811409e00f9@mail.gmail.com> References: <20080429124241.08e18ae3@hyperion.delvare> <20080429124621.07e6efd6@hyperion.delvare> <9e4733910804290516g1fd0b653jae63e811409e00f9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: Kay Sievers , linuxppc-dev list , Paul Mundt , Linux I2C , Scott Wood List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Jon, On Tue, 29 Apr 2008 08:16:13 -0400, Jon Smirl wrote: > On 4/29/08, Jean Delvare wrote: > > Based on earlier work by Jon Smirl and Jochen Friedrich. > > +/* Looks like: i2c:S */ > > +static int do_i2c_entry(const char *filename, struct i2c_device_id *id, > > + char *alias) > > +{ > > + sprintf(alias, I2C_MODULE_PREFIX "%s", id->name); > > Do you want to add the colon? Not yet. This can be added later anyway, so I'd rather push the known-to-work patches as is for now, and we fix this detail between rc1 and rc2. For now I am still in favor of removing the "*" we don't need, I'll send a patch doing this later today (I hope) for discussion. > > + > > + return 1; > > +} Thanks, -- Jean Delvare