]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-pasemi: use i2c_add_numbered_adapter()
authorOlof Johansson <olof@lixom.net>
Sun, 27 Jan 2008 17:14:44 +0000 (18:14 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 Jan 2008 17:14:44 +0000 (18:14 +0100)
commit14c6e0680ee195015040280bd06acd3326a6270b
tree7168f0fe28eeb419af4ca5445d7865240d0260c6
parentb917906e54150760fbd540a83c575e381f2ee2b2
i2c-pasemi: use i2c_add_numbered_adapter()

Use numbered adapter registration to always have the same hardware bus
show up at the same number.

PWRficient 1682M has three buses, they are all on the same PCI device but
different functions. So do the simple thing and register them based on
function number. Future products, if having a different number of busses,
are expected to have similar behaviour w.r.t. device/function layout.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-pasemi.c