• Jean Delvare's avatar
    i2c: Kill i2c_adapter.class_dev · fccb56e4
    Jean Delvare authored
    Kill i2c_adapter.class_dev. Instead, set the class of i2c_adapter.dev
    to i2c_adapter_class, so that a symlink will be created for every
    i2c_adapter in /sys/class/i2c-adapter.
    
    The same change must be mirrored to i2c-isa as it duplicates some
    of the i2c-core functionalities.
    
    User-space tools and libraries might need some adjustments. In
    particular, libsensors from lm_sensors 2.10.3 or later is required for
    proper discovery of i2c adapter names after this change.
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    fccb56e4
i2c-core.c 31.3 KB