mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
update CCI tools
kernel 4.9 cci_intf.h keep kernel and bionic the same, don't need cci_device Change-Id: I60295e8027953f8308e047d34ed1491b7f353e3c Signed-off-by: shangbl1 <shangbl1@lenovo.com> Reviewed-on: https://gerrit.mot.com/1529155 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhenxin Xi <xizx@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
83241cceff
commit
db7831a740
1 changed files with 4 additions and 0 deletions
|
|
@ -46,7 +46,11 @@ static int32_t cci_intf_xfer(
|
|||
__func__, cmd, xfer->cci_bus, xfer->slave_addr,
|
||||
xfer->reg.width, xfer->reg.addr, xfer->data.count);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)
|
||||
if (xfer->cci_device > 1 || xfer->cci_bus > 1 || xfer->slave_addr > 0x7F ||
|
||||
#else
|
||||
if (xfer->cci_bus > 1 || xfer->slave_addr > 0x7F ||
|
||||
#endif
|
||||
xfer->reg.width < 1 || xfer->reg.width > 2 ||
|
||||
xfer->reg.addr > ((1<<(8*xfer->reg.width))-1) ||
|
||||
xfer->data.count < 1 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue