Re: [PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jean Delvare
Hi Jon, On Tue, 29 Apr 2008 08:16:13 -0400, Jon Smirl wrote: > On 4/29/08, Jean Delvare <[EMAIL PROTECTED]> 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, > > +

Re: [PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jon Smirl
On 4/29/08, Jean Delvare <[EMAIL PROTECTED]> 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_P

[PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jean Delvare
Based on earlier work by Jon Smirl and Jochen Friedrich. This patch allows new-style i2c chip drivers to have alias names using the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this point, the old i2c driver binding scheme (driver_name/type) is still supported. Signed-off-by: Jea