mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: Add IDs to adapters
IDs have been defined but not used by most of the I2C adapters. By having a unique ID, clients can check for correct connection during probe. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
a394ae1542
commit
9ace555d7d
18 changed files with 20 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter ali1535_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_ALI1535,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -370,6 +370,7 @@ static const struct i2c_algorithm ali1563_algorithm = {
|
|||
|
||||
static struct i2c_adapter ali1563_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_ALI1563,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &ali1563_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -470,6 +470,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter ali15x3_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_ALI15X3,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
struct i2c_adapter amd756_smbus = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_AMD756,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -351,6 +351,7 @@ static int __devinit amd8111_probe(struct pci_dev *dev, const struct pci_device_
|
|||
smbus->adapter.owner = THIS_MODULE;
|
||||
snprintf(smbus->adapter.name, I2C_NAME_SIZE,
|
||||
"SMBus2 AMD8111 adapter at %04x", smbus->base);
|
||||
smbus->adapter.id = I2C_HW_SMBUS_AMD8111;
|
||||
smbus->adapter.class = I2C_CLASS_HWMON;
|
||||
smbus->adapter.algo = &smbus_algorithm;
|
||||
smbus->adapter.algo_data = smbus;
|
||||
|
|
|
|||
|
|
@ -442,6 +442,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter i801_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_I801,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ static struct i2c_algo_bit_data i810_i2c_bit_data = {
|
|||
|
||||
static struct i2c_adapter i810_i2c_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_I810,
|
||||
.name = "I810/I815 I2C Adapter",
|
||||
.algo_data = &i810_i2c_bit_data,
|
||||
};
|
||||
|
|
@ -186,6 +187,7 @@ static struct i2c_algo_bit_data i810_ddc_bit_data = {
|
|||
|
||||
static struct i2c_adapter i810_ddc_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_I810,
|
||||
.name = "I810/I815 DDC Adapter",
|
||||
.algo_data = &i810_ddc_bit_data,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ static int __devinit nforce2_probe_smb (struct pci_dev *dev, int bar,
|
|||
return -1;
|
||||
}
|
||||
smbus->adapter.owner = THIS_MODULE;
|
||||
smbus->adapter.id = I2C_HW_SMBUS_NFORCE2;
|
||||
smbus->adapter.class = I2C_CLASS_HWMON;
|
||||
smbus->adapter.algo = &smbus_algorithm;
|
||||
smbus->adapter.algo_data = smbus;
|
||||
|
|
|
|||
|
|
@ -384,6 +384,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter piix4_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_PIIX4,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ static struct i2c_algo_bit_data sav_i2c_bit_data = {
|
|||
|
||||
static struct i2c_adapter savage4_i2c_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_SAVAGE,
|
||||
.name = "I2C Savage4 adapter",
|
||||
.algo_data = &sav_i2c_bit_data,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -365,6 +365,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter sis5595_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_SIS5595,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -457,6 +457,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter sis630_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_SIS630,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -249,6 +249,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter sis96x_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_SIS96X,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ static struct i2c_algo_bit_data bit_data = {
|
|||
|
||||
static struct i2c_adapter vt586b_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_VIA,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.name = "VIA i2c",
|
||||
.algo_data = &bit_data,
|
||||
|
|
|
|||
|
|
@ -306,6 +306,7 @@ static const struct i2c_algorithm smbus_algorithm = {
|
|||
|
||||
static struct i2c_adapter vt596_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_SMBUS_VIA2,
|
||||
.class = I2C_CLASS_HWMON,
|
||||
.algo = &smbus_algorithm,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ static struct i2c_algo_bit_data voo_i2c_bit_data = {
|
|||
|
||||
static struct i2c_adapter voodoo3_i2c_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_VOO,
|
||||
.class = I2C_CLASS_TV_ANALOG,
|
||||
.name = "I2C Voodoo3/Banshee adapter",
|
||||
.algo_data = &voo_i2c_bit_data,
|
||||
|
|
@ -181,6 +182,7 @@ static struct i2c_algo_bit_data voo_ddc_bit_data = {
|
|||
|
||||
static struct i2c_adapter voodoo3_ddc_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_VOO,
|
||||
.class = I2C_CLASS_DDC,
|
||||
.name = "DDC Voodoo3/Banshee adapter",
|
||||
.algo_data = &voo_ddc_bit_data,
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ static struct i2c_algo_bit_data scx200_i2c_data = {
|
|||
|
||||
static struct i2c_adapter scx200_i2c_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.id = I2C_HW_B_SCX200,
|
||||
.algo_data = &scx200_i2c_data,
|
||||
.name = "NatSemi SCx200 I2C",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue