[i2c] "driver forgot to specify physical device"
Till Harbaum / Lists
lists at harbaum.org
Mon Apr 16 22:06:44 CEST 2007
Hi,
Am Montag 16 April 2007 schrieb Jean Delvare:
> Easy, in the i2c_tiny_usb_probe(), before you call i2c_add_adapter(),
> add:
> dev->i2c_adap.dev.parent = &dev->dev;
I am afraid i dont understand that. Ok, i understand i have to assign
something to dev->i2c_adap.dev.parent. But what do you mean by &dev->dev?
This is my own structure and it just doesn't contain any further entry named
dev. Do you mean: dev->i2c_adap.dev.parent = &dev->i2c_adap.dev ?? But that
would make my driver its own parent, wouldn't it?
> You will have to make it comply with Documentation/CodingStyle first.
Ok, i think i fixed that and will send a new version once the question above
is solved.
Thanks,
Till
More information about the i2c
mailing list