Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-13 Thread Jon Smirl
On 1/13/08, Jean Delvare <[EMAIL PROTECTED]> wrote: > Hi Jon, > > On Sat, 12 Jan 2008 11:26:34 -0500, Jon Smirl wrote: > > The common scheme used elsewhere in the kernel for handling more than > > one device in a single driver is aliases. The i2c code's existing > > driver_name/type combination is

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-13 Thread Jean Delvare
Hi Jon, On Sat, 12 Jan 2008 11:26:34 -0500, Jon Smirl wrote: > The common scheme used elsewhere in the kernel for handling more than > one device in a single driver is aliases. The i2c code's existing > driver_name/type combination is a different way of implementing the > same feature. But there

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-13 Thread Jean Delvare
Hi Jon, On Sat, 12 Jan 2008 11:26:34 -0500, Jon Smirl wrote: The common scheme used elsewhere in the kernel for handling more than one device in a single driver is aliases. The i2c code's existing driver_name/type combination is a different way of implementing the same feature. But there is

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-13 Thread Jon Smirl
On 1/13/08, Jean Delvare [EMAIL PROTECTED] wrote: Hi Jon, On Sat, 12 Jan 2008 11:26:34 -0500, Jon Smirl wrote: The common scheme used elsewhere in the kernel for handling more than one device in a single driver is aliases. The i2c code's existing driver_name/type combination is a

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-12 Thread Jon Smirl
On 1/12/08, Jean Delvare <[EMAIL PROTECTED]> wrote: > Hi Jon, > > On Fri, 11 Jan 2008 20:20:15 +0100, Jean Delvare wrote: > > > +{ > > > + /* only powerpc drivers implement the id_table, > > > +* it is empty on other platforms */ > > > + if (id) { > > > + while (id->name[0]) { >

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-12 Thread Jean Delvare
Hi Jon, On Fri, 11 Jan 2008 20:20:15 +0100, Jean Delvare wrote: > > +{ > > + /* only powerpc drivers implement the id_table, > > +* it is empty on other platforms */ > > + if (id) { > > + while (id->name[0]) { > > + if (strcmp(client->driver_name, id->name) ==

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-12 Thread Jean Delvare
Hi Jon, On Fri, 11 Jan 2008 20:20:15 +0100, Jean Delvare wrote: +{ + /* only powerpc drivers implement the id_table, +* it is empty on other platforms */ + if (id) { + while (id-name[0]) { + if (strcmp(client-driver_name, id-name) == 0) This

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-12 Thread Jon Smirl
On 1/12/08, Jean Delvare [EMAIL PROTECTED] wrote: Hi Jon, On Fri, 11 Jan 2008 20:20:15 +0100, Jean Delvare wrote: +{ + /* only powerpc drivers implement the id_table, +* it is empty on other platforms */ + if (id) { + while (id-name[0]) { +

Re: [i2c] [PATCH 1/5] Implement module aliasing for i2c to translate from device tree names

2008-01-11 Thread Jean Delvare
Hi Jon, On Wed, 19 Dec 2007 23:41:38 -0500, Jon Smirl wrote: > This patch allows new style i2c chip drivers to have alias names using > the official kernel aliasing system and MODULE_DEVICE_TABLE(). I've > tested it on PowerPC and x86. This change is required for PowerPC > device tree support.