]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mediatek: Fix generic definitions for bus frequency
authorQii Wang <qii.wang@mediatek.com>
Thu, 17 Sep 2020 11:55:41 +0000 (19:55 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 18 Sep 2020 20:49:24 +0000 (22:49 +0200)
commitefe1843cf968c309e40508ba0fe034198fa1ee31
treeb9fcc3df740466ad587d45e79d0eec088aee97ab
parent235b38779267dbbef3316f2369173d7b6c3aaee6
i2c: mediatek: Fix generic definitions for bus frequency

The max frequency of mediatek i2c controller driver is
I2C_MAX_HIGH_SPEED_MODE_FREQ, not I2C_MAX_FAST_MODE_PLUS_FREQ.
Fix it.

Fixes: 87b18c69f76f ("i2c: drivers: Use generic definitions for bus frequencies")
Reviewed-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c