Skip to contentSkip to conversation

i2c: i2c-mv64xxx - set adapter owner and class

PATCH New Mark A. Greer 2 participants 2 messages May 19, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: i2c-mv64xxx - set adapter owner and class

i2c: Set adapter owner and class fields.

This patch adds the correct values for the 'owner' and 'class' fields of the adapter structure in the mv64xxx i2c bus driver. The missing class field caused some i2c chip drivers to refuse to attempt a probe on the mv64xxx i2c bus.

--

-------------- next part --------------

drivers/i2c/busses/i2c-mv64xxx.c +2 -0
diff -Nru a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c
@@ -525,6 +525,8 @@
 	drv_data->irq = platform_get_irq(pd, 0);
 	drv_data->adapter.id = I2C_ALGO_MV64XXX | I2C_HW_MV64XXX;
 	drv_data->adapter.algo = &mv64xxx_i2c_algo;
+	drv_data->adapter.owner = THIS_MODULE;
+	drv_data->adapter.class = I2C_CLASS_HWMON;
 	drv_data->adapter.timeout = pdata->timeout;
 	drv_data->adapter.retries = pdata->retries;
 	dev_set_drvdata(dev, drv_data);
Applied
#1 lore raw

PATCH 1/1 i2c: i2c-mv64xxx - set adapter owner and class

Quoted 9 lines · Mark A. Greer

i2c: Set adapter owner and class fields.

This patch adds the correct values for the 'owner' and 'class' fields of the adapter structure in the mv64xxx i2c bus driver. The missing class field caused some i2c chip drivers to refuse to attempt a probe on the mv64xxx i2c bus.

Applied, thanks.

greg k-h