i2c-piix4: Eliminate piix4_smba global variable
authorAndrew Armenia <andrew@asquaredlabs.com>
Tue, 24 Jul 2012 12:13:56 +0000 (14:13 +0200)
committerJean Delvare <khali@endymion.delvare>
Tue, 24 Jul 2012 12:13:56 +0000 (14:13 +0200)
commit14a8086d27ad9761d505489d5a239f21cd67ef0f
tree350095694b4447e35bf5d8da8c571922301bfde1
parent56f2178898ffca84dcdfb351f0127bf5732b1610
i2c-piix4: Eliminate piix4_smba global variable

Some chipsets have multiple sets of piix4-compatible SMBus registers.
Eliminating the global variable will allow these chipsets to be fully
supported.

Return value from piix4_setup and piix4_sb800_setup now returns the smba
value detected. This is stored in a struct i2c_piix4_adapdata. Thus
the global variable is eliminated.

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