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

Commit 4a029abe authored by Lennart Sorensen's avatar Lennart Sorensen Committed by Jean Delvare
Browse files

scx200_i2c: Add missing class parameter



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: default avatarLen Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent e946217e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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",