Hi,
sorry pressed the send button by mistake.
read below
On Thu, Jul 24, 2008 at 5:26 PM, <[EMAIL PROTECTED]> wrote:
> I am not using the last snapshot of Linux, but the 2.6.23 release.
> My source code is not completly up-to-date.
>
> For example there is no reference of I2C_BOARD_INFO in board-h4.
> I have no 'i2c_device_id menelaus_id[]' in the i2c drivers code.
>
> Perhap's that's why I am quite confuse, I am refering to recent code examples
> and I am using not-so-recent Linux version.
might be. Why are you using 2.6.23 and not 2.6.26 ?
Anyways, in 2.6.23 there was no i2c_device_id, so you can drop that comment.
But if you have to give the same name in the driver and in the i2c_board_info().
something like:
board file:
struct i2c_board_info *info[] =
{
{
I2C_BOARD_INFO("mydevice", 0xff),
},
};
(...)
driver:
struct i2c_driver mydriver = {
.driver = {
.name = "mydevice",
},
.probe = myprobe,
.remove = __exit_p(myremove),
};
got it ??
--
Best Regards,
Felipe Balbi
[EMAIL PROTECTED]
_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c