Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ace555d authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jean Delvare
Browse files

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: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent a394ae15
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,
};
+1 −0
Original line number Diff line number Diff line
@@ -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,
};
+1 −0
Original line number Diff line number Diff line
@@ -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,
};
+1 −0
Original line number Diff line number Diff line
@@ -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,
};
+1 −0
Original line number Diff line number Diff line
@@ -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;
Loading