i2c-i801: Handle multiple instances instead of keeping global state
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 31 Oct 2010 20:06:59 +0000 (21:06 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 31 Oct 2010 20:06:59 +0000 (21:06 +0100)
commit0cd96eb0a74791cacb27ace902b991cfd0e72abe
treed804672096c9374f96fc584f4ba72e0bd737bbdf
parente30d9859cf08920ae711f57ecd9726804451d29f
i2c-i801: Handle multiple instances instead of keeping global state

It's poor form to keep driver state in global variables rather than
per-instance. It never really mattered in practice when there was only
one controller on the chipset, but the latest chipsets do have more
than one controller, so now we care.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-i801.c