i2c: npcm: Fix timeout calculation
authorTali Perry <tali.perry1@gmail.com>
Tue, 17 May 2022 10:11:36 +0000 (18:11 +0800)
committerWolfram Sang <wsa@kernel.org>
Sat, 21 May 2022 05:52:17 +0000 (07:52 +0200)
commit288b204492fddf28889cea6dc95a23976632c7a0
tree5a14a264cf1482bccf9001641671cb919dd4899c
parent94acda59adb91ce6bbd500be5bcb240e4f3bea27
i2c: npcm: Fix timeout calculation

Use adap.timeout for timeout calculation instead of hard-coded
value of 35ms.

Fixes: 56a1485b102e ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver")
Signed-off-by: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Tyrone Ting <kfting@nuvoton.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c