i2c: piix4: Convert piix4_main_adapter to array
authorChristian Fetzer <fetzer.ch@gmail.com>
Thu, 19 Nov 2015 19:13:47 +0000 (20:13 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Nov 2015 13:31:23 +0000 (14:31 +0100)
commitca2061e1283b787b49e3f6817645b9f0a2151671
tree1482740f429c9519c3a40a50d21245080d54abef
parente49865d10ad563fda56bfe3c385948f88b41b1af
i2c: piix4: Convert piix4_main_adapter to array

The SB800 chipset supports a multiplexed main SMBus controller with
four ports. Therefore the static variable piix4_main_adapter is
converted into a piix4_main_adapters array that can hold one
i2c_adapter for each multiplexed port.

The auxiliary adapter remains unchanged since it represents the second
(not multiplexed) SMBus controller on the SB800 chipset.

Signed-off-by: Christian Fetzer <fetzer.ch@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c