Hello, Ok, I have just read my code carefully and correct some mistakes. It is quite clean now, but I still don't get my clients.
In the board initialisation file, I define two things : - a platform_device for my I2C bus The name field correspond to the adapter platform_driver.name - a valid i2c_board_info struct defining my clients The name field correspond to the client i2c_driver.name I do not care about type field, I just use the I2C_BOARD_INFO macro I have written different modules for the algorithm, the adapter, and the client. First at all, I load the client driver with insmod utility. Then, I load the algorithm. And finally, I load the adapter. When the adapter is loaded, my probe(platform_device) is correctly called. I allocate a new structure correctly and register a new adapter. On the remove callback function, I deallocate it. No client is registred to my i2c_driver, so where is the mistake ? > got it ?? As soon as possible :-) Best regards, Légion. _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
