[PATCH 2.6] Add class definition to the elektor bus driver
Jean Delvare
khali at linux-fr.org
Fri Feb 25 21:11:55 CET 2005
Hi Frank, all,
> > Which bus driver are you using? It obviously lacks class declaration,
> > so the correct fix is to add the class there.
>
> The modules that are loading are (in reverse order):
> adm1031
> ad5321
> mic184
> pca9540
> i2c_sensor
> i2c_elektor
> i2c_algo_pcf
> i2c_core
>
> So I believe what you are asking for is the i2c_elektor driver for the
> PCF8584 ISA to I2C chip.
Correct, I just checked and this one actually lacks its class. Patch
follows.
Greg, can you please apply this one to your tree?
Thanks.
This patch adds a class definition to the elektor i2c bus driver.
Without this definition, hardware monitoring chips located on such
busses cannot possibly be driven.
Signed-off-by: Jean Delvare <khali at linux-fr.org>
--- linux-2.6.11-rc5/drivers/i2c/busses/i2c-elektor.c.orig 2004-12-24 22:33:49.000000000 +0100
+++ linux-2.6.11-rc5/drivers/i2c/busses/i2c-elektor.c 2005-02-25 20:41:26.000000000 +0100
@@ -183,6 +183,7 @@
static struct i2c_adapter pcf_isa_ops = {
.owner = THIS_MODULE,
+ .class = I2C_CLASS_HWMON,
.id = I2C_HW_P_ELEK,
.algo_data = &pcf_isa_data,
.name = "PCF8584 ISA adapter",
--
Jean Delvare
More information about the lm-sensors
mailing list