|
@@ -718,11 +718,16 @@ static const struct i2c_algorithm xiic_algorithm = {
|
|
|
.functionality = xiic_func,
|
|
.functionality = xiic_func,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+static const struct i2c_adapter_quirks xiic_quirks = {
|
|
|
|
|
+ .max_read_len = 255,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
static const struct i2c_adapter xiic_adapter = {
|
|
static const struct i2c_adapter xiic_adapter = {
|
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
|
.name = DRIVER_NAME,
|
|
.name = DRIVER_NAME,
|
|
|
.class = I2C_CLASS_DEPRECATED,
|
|
.class = I2C_CLASS_DEPRECATED,
|
|
|
.algo = &xiic_algorithm,
|
|
.algo = &xiic_algorithm,
|
|
|
|
|
+ .quirks = &xiic_quirks,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|