From: Thomas Kavanagh Date: Thu, 13 Sep 2012 15:16:55 +0000 (-0700) Subject: i2c: algo: pca: Fix mode selection for PCA9665 X-Git-Tag: v3.6-rc6~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f71a3ef3753ac2068009637eee619e163f44b30;p=pandora-kernel.git 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: Thomas Kavanagh Signed-off-by: Guenter Roeck Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed