[alsa-devel] [PATCH 3/3] i2c: change the id to let the i2c-gpio work

Bo Shen voice.shen at atmel.com
Fri Oct 12 03:53:21 CEST 2012


Hi Mark,

On 10/11/2012 15:11, Mark Brown wrote:
> On Thu, Oct 11, 2012 at 10:38:17AM +0800, Bo Shen wrote:
>
>>   static struct platform_device at91sam9260_twi_device = {
>>   	.name			= "i2c-gpio",
>> -	.id			= -1,
>> +	.id			= 0,
>>   	.dev.platform_data	= &pdata,
>>   };
>
> Why would this have any effect on the operation of the i2c-gpio driver?
> This suggests i2c-gpio is buggy.

This cause i2c devices can not register to the i2c bus which the device 
want.

I will send this patch to i2c maintainer.

Thanks

BR,
Bo Shen



More information about the Alsa-devel mailing list