mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
Rename amd756_adapter to amd756_smbus and export it. This is
needed for multiplexing support. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2753 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1779f0dc81
commit
78f0d3fc66
1 file changed
+6
-4
@@ -308,7 +308,7 @@ static struct i2c_algorithm smbus_algorithm = {
|
||||
.functionality = amd756_func,
|
||||
};
|
||||
|
||||
static struct i2c_adapter amd756_adapter = {
|
||||
struct i2c_adapter amd756_smbus = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "unset",
|
||||
.id = I2C_ALGO_SMBUS | I2C_HW_SMBUS_AMD756,
|
||||
@@ -379,10 +379,10 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
|
||||
printk(KERN_DEBUG DRV_NAME ": AMD756_smba = 0x%X\n", amd756_ioport);
|
||||
#endif
|
||||
|
||||
sprintf(amd756_adapter.name, "SMBus %s adapter at %04x",
|
||||
sprintf(amd756_smbus.name, "SMBus %s adapter at %04x",
|
||||
chipname[id->driver_data], amd756_ioport);
|
||||
|
||||
error = i2c_add_adapter(&amd756_adapter);
|
||||
error = i2c_add_adapter(&amd756_smbus);
|
||||
if (error) {
|
||||
printk(KERN_ERR DRV_NAME
|
||||
": Adapter registration failed, module not inserted.\n");
|
||||
@@ -416,7 +416,7 @@ static int __init i2c_amd756_init(void)
|
||||
|
||||
static void __exit i2c_amd756_exit(void)
|
||||
{
|
||||
i2c_del_adapter(&amd756_adapter);
|
||||
i2c_del_adapter(&amd756_smbus);
|
||||
release_region(amd756_ioport, SMB_IOSIZE);
|
||||
}
|
||||
|
||||
@@ -424,5 +424,7 @@ MODULE_AUTHOR("Merlin Hughes <merlin@merlin.org>");
|
||||
MODULE_DESCRIPTION("AMD756/766/768/8111 and nVidia nForce SMBus driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
EXPORT_SYMBOL(amd756_smbus);
|
||||
|
||||
module_init(i2c_amd756_init)
|
||||
module_exit(i2c_amd756_exit)
|
||||
Reference in new issue
Block a user