mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
i2c: octeon: Fix set SCL recovery function
The set SCL recovery function unconditionally pulls the SCL line low. Only pull SCL line low according to val parameter. Signed-off-by: Dmitry Bazhenov <[email protected]> Signed-off-by: Jan Glauber <[email protected]> [Changed commit message] Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
c13f743aee
commit
e7051556b6
1 changed files with 1 additions and 1 deletions
|
|
@ -767,7 +767,7 @@ static void octeon_i2c_set_scl(struct i2c_adapter *adap, int val)
|
|||
{
|
||||
struct octeon_i2c *i2c = i2c_get_adapdata(adap);
|
||||
|
||||
octeon_i2c_write_int(i2c, TWSI_INT_SCL_OVR);
|
||||
octeon_i2c_write_int(i2c, val ? 0 : TWSI_INT_SCL_OVR);
|
||||
}
|
||||
|
||||
static int octeon_i2c_get_sda(struct i2c_adapter *adap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue