• Andrew Armenia's avatar
    i2c-piix4: Separate registration and probing code · e154bf6f
    Andrew Armenia authored
    Some chipsets have multiple sets of SMBus registers each controlling a
    separate SMBus. Supporting these chipsets properly will require registering
    multiple I2C adapters for one piix4.
    
    The code to initialize and register the i2c_adapter structure has been
    separated from piix4_probe and allows registration of a piix4 adapter
    given its base address. Note that the i2c_adapter and i2c_piix4_adapdata
    structures are now dynamically allocated.
    Signed-off-by: default avatarAndrew Armenia <andrew@asquaredlabs.com>
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    e154bf6f
i2c-piix4.c 16.6 KB