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

Jon Smirl jonsmirl at gmail.com
Tue Apr 29 14:16:13 CEST 2008


On 4/29/08, Jean Delvare <khali at linux-fr.org> 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?

>  +
>  +       return 1;
>  +}

-- 
Jon Smirl
jonsmirl at gmail.com



More information about the i2c mailing list