[PATCH] Add class definition to the elektor bus driver

From: Greg KH
Date: Fri Mar 04 2005 - 17:21:38 EST


ChangeSet 1.2111, 2005/03/02 15:03:15-08:00, khali@xxxxxxxxxxxx

[PATCH] Add class definition to the elektor bus driver

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.

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@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>


drivers/i2c/busses/i2c-elektor.c | 1 +
1 files changed, 1 insertion(+)


diff -Nru a/drivers/i2c/busses/i2c-elektor.c b/drivers/i2c/busses/i2c-elektor.c
--- a/drivers/i2c/busses/i2c-elektor.c 2005-03-04 12:23:13 -08:00
+++ b/drivers/i2c/busses/i2c-elektor.c 2005-03-04 12:23:13 -08:00
@@ -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",

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/