Skip to content
Commit 5f71a3ef authored by Thomas Kavanagh's avatar Thomas Kavanagh Committed by Wolfram Sang
Browse files

i2c: algo: pca: Fix mode selection for PCA9665



The code currently always selects turbo mode for PCA9665, no matter which
clock frequency is configured. This is because it compares the clock frequency
against constants reflecting (boundary / 100). Compare against real boundary
frequencies to fix the problem.

Signed-off-by: default avatarThomas Kavanagh <tkavanagh@juniper.net>
Signed-off-by: default avatarGuenter Roeck <groeck@juniper.net>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 4a5b2b26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment