diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-02-27 14:25:05 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-03-08 12:03:41 -0500 |
commit | 1945250d979203ed326b5a44fd705b6b2c46eec5 (patch) | |
tree | 8a46a3e2dee3392702e2148c05b8fd345926a6b9 | |
parent | 2de3ec4f1d4ba6ee380478055104eb918bd50cce (diff) |
i2c: m65xx: drop superfluous quirk structure
All length fields in Linux I2C are u16, so a HW length limitation of 16
bit lengths is not a limitation. Remove the quirk structure.
Tested-by: Jun Gao <jun.gao@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-mt65xx.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 4a7d9bc2142b..45d61714c81b 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c | |||
@@ -172,14 +172,6 @@ static const struct i2c_adapter_quirks mt6577_i2c_quirks = { | |||
172 | .max_comb_2nd_msg_len = 31, | 172 | .max_comb_2nd_msg_len = 31, |
173 | }; | 173 | }; |
174 | 174 | ||
175 | static const struct i2c_adapter_quirks mt8173_i2c_quirks = { | ||
176 | .max_num_msgs = 65535, | ||
177 | .max_write_len = 65535, | ||
178 | .max_read_len = 65535, | ||
179 | .max_comb_1st_msg_len = 65535, | ||
180 | .max_comb_2nd_msg_len = 65535, | ||
181 | }; | ||
182 | |||
183 | static const struct mtk_i2c_compatible mt6577_compat = { | 175 | static const struct mtk_i2c_compatible mt6577_compat = { |
184 | .quirks = &mt6577_i2c_quirks, | 176 | .quirks = &mt6577_i2c_quirks, |
185 | .pmic_i2c = 0, | 177 | .pmic_i2c = 0, |
@@ -199,7 +191,6 @@ static const struct mtk_i2c_compatible mt6589_compat = { | |||
199 | }; | 191 | }; |
200 | 192 | ||
201 | static const struct mtk_i2c_compatible mt8173_compat = { | 193 | static const struct mtk_i2c_compatible mt8173_compat = { |
202 | .quirks = &mt8173_i2c_quirks, | ||
203 | .pmic_i2c = 0, | 194 | .pmic_i2c = 0, |
204 | .dcm = 1, | 195 | .dcm = 1, |
205 | .auto_restart = 1, | 196 | .auto_restart = 1, |