[i2c] [patch 2.6.21-rc3-git +i2c 0/5] "new style" I2C driver support, take ~7
David Brownell
david-b at pacbell.net
Fri Mar 9 06:08:26 CET 2007
OK, this version takes into account all Jean's recent feedback.
The patches are split up as before, and assume the class attribute
cleanup I sent earlier:
- Driver probe() needs to work, along with hotplug and coldplug.
- Likewise remove() must work. As with probe(), nothing will
yet invoke these new methods.
- Did someone just say "Documentation/i2c"?
- Board-specific arch_initcall() code can declare i2c_board_info
for each device (including irq and platform_data); and include
an i2c_new_device() call to start triggering probe() etc.
- Add i2c_register_adapter() to claim a specific bus id and kick
in automatic creation of nodes for pre-declared devices; that
will be the main way for e.g. embedded boards to configure all
their I2C devices.
I'm also going to follow this with four unrelated patches:
- Update i2c core EXPORT_SYMBOL declarations to match CodingStyle
- rtc-ds1307 updates to facilitate driver model changes (assumes
the to_i2c_adapter cleanup I sent earlier)
- rtc-ds1307 switches to new-style driver
- switch at91 platform over
OK, that's it for now ... there are other i2c cleanup patches that
can follow (e.g. remove i2c_client.driver and i2c_client.adapter)
but that's for another day.
- Dave
More information about the i2c
mailing list