Hi all, Here comes a patch set, based on earlier work by Jon Smirl, that updates the i2c subsystem to support and use the standard, alias-based device/driver matching scheme that most other subsystems are using. Contrary to Jon's patch set, this one only supports Linux names and not OF names, although it might be added later (just not sure how exactly.)
Patch 1/3 adds support for this standard matching scheme, patch 2/3 converts all the in-tree drivers to make use of it, and patch 3/3 removes the old driver_name/type matching scheme that has no users left at this point. This new approach makes the i2c device drivers smaller in general (because the name matching code moved to i2c-core), the exception being drivers which support only one device, for which the device ID table adds a small overhead (88 bytes on x86_64). The key benefit compared to the original matching scheme is that platform code no longer needs to know which driver supports which device. This means that support for a given device can move from one driver to another without changing the platform code. Note: all the arm and powerpc stuff is untested. -- Jean Delvare _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev