• David Brownell's avatar
    i2c: Migration aids for i2c_adapter.dev removal · b119dc3f
    David Brownell authored
    Flag i2c_adapter.dev for removal after userspace tools get upgraded, and
    include a near-term code migration aid to facilitate this:
    
     - The class device gets the name attribute it should have had.  This
       was previously (wrongly) associated with the i2c_adapter.dev node.
       Sysfs based tools and libraries can start converting right away.
    
     - Issue a warning for legacy adapter drivers that don't provide any
       physical device node; so systems with those drivers will know to
       fix this problem earlier.
    
    This is one of a series of patches to help the I2C stack become a better
    citizen of the Linux Driver Model world.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    b119dc3f
i2c-core.c 31.8 KB