i2c: npcm: Fix timeout calculation
authorTali Perry <tali.perry1@gmail.com>
Tue, 17 May 2022 10:11:36 +0000 (18:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:30:37 +0000 (10:30 +0200)
commit950509ff94106832f3a29d04c2664cf1076681af
tree185bdbdcedbbaf884bd712a1b640770edd72e969
parent793b6db62ea3bd109d59e75dbb64990e10dba8a2
i2c: npcm: Fix timeout calculation

[ Upstream commit 288b204492fddf28889cea6dc95a23976632c7a0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c