mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
i2c-core: set default i2c clk 100k, at i2c smbus transfer
This commit is contained in:
@@ -2126,11 +2126,17 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr,
|
||||
.flags = flags,
|
||||
.len = 1,
|
||||
.buf = msgbuf0,
|
||||
#ifdef CONFIG_I2C_ROCKCHIP_COMPAT
|
||||
.scl_rate = 100 * 1000,
|
||||
#endif
|
||||
}, {
|
||||
.addr = addr,
|
||||
.flags = flags | I2C_M_RD,
|
||||
.len = 0,
|
||||
.buf = msgbuf1,
|
||||
#ifdef CONFIG_I2C_ROCKCHIP_COMPAT
|
||||
.scl_rate = 100 * 1000,
|
||||
#endif
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user