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:
shangbl1 2020-04-07 15:16:14 +08:00 • committed by Bolei Shang
commit db7831a740

View file

@ -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 ||