diff options
| author | Yuesong Li <liyuesong@vivo.com> | 2025-06-13 19:06:38 +0800 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@linux.intel.com> | 2025-07-25 23:15:39 +0200 |
| commit | ce556c29b0a2974f344aadf37708956b43c11141 (patch) | |
| tree | 7956491587df6536d79e12dc2248c9b11cf06b18 /drivers/i2c | |
| parent | a9320f3e96adf0398187816b39cfa867340fc40c (diff) | |
| download | net-ce556c29b0a2974f344aadf37708956b43c11141.tar.gz | |
i2c: lpi2c: convert to use secs_to_jiffies()
Since secs_to_jiffies() has been introduced in commit b35108a51cf7
("jiffies: Define secs_to_jiffies()"), we can use it to avoid scaling
the time to msec.
Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250613110649.3283336-1-liyuesong@vivo.com
Diffstat (limited to 'drivers/i2c')
| -rw-r--r-- | drivers/i2c/busses/i2c-imx-lpi2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index 064bc83840a625..717b617dbc2cbc 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -563,7 +563,7 @@ static int lpi2c_imx_dma_timeout_calculate(struct lpi2c_imx_struct *lpi2c_imx) time += 1; /* Double calculated time */ - return msecs_to_jiffies(time * MSEC_PER_SEC); + return secs_to_jiffies(time); } static int lpi2c_imx_alloc_rx_cmd_buf(struct lpi2c_imx_struct *lpi2c_imx) |
