]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c97936a16b4d59b7c0318e45d9200663bfd5b95
tree350095694b4447e35bf5d8da8c571922301bfde1
parent8e6be490ff1fbf3afcef6f0b4dc132af27555d06
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