Skip to content

Commit

Permalink
scx200_i2c: Add missing class parameter
Browse files Browse the repository at this point in the history
The scx200_i2c driver is missing the .class parameter, which means no
i2c drivers are willing to probe for devices on the bus and attach to
them.

Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Lennart Sorensen authored and Jean Delvare committed Oct 30, 2008
1 parent e946217 commit 4a029ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/scx200_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ static struct i2c_algo_bit_data scx200_i2c_data = {

static struct i2c_adapter scx200_i2c_ops = {
.owner = THIS_MODULE,
.class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
.id = I2C_HW_B_SCX200,
.algo_data = &scx200_i2c_data,
.name = "NatSemi SCx200 I2C",
Expand Down

0 comments on commit 4a029ab

Please sign in to comment.