]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-piix4: Separate registration and probing code
authorAndrew Armenia <andrew@asquaredlabs.com>
Tue, 24 Jul 2012 23:25:00 +0000 (09:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 24 Jul 2012 23:25:00 +0000 (09:25 +1000)
commit2ec58565e2564ee0896ba2031a16f86605217f93
treefad9348c96bdf0345597098747462f3e2daeb9d7
parentb2667ca8a17b4e2458cc2a5af457e7607e7307f3
i2c-piix4: Separate registration and probing code

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: Andrew Armenia <andrew@asquaredlabs.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-piix4.c