]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: iproc: Replace udelay() with usleep_range()
authorAndi Shyti <andi.shyti@kernel.org>
Fri, 18 Apr 2025 21:16:31 +0000 (23:16 +0200)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:56 +0000 (22:23 +0200)
commit9f64de0f8522ec5b2d3208b6d3b47e8b8a0f0c3c
tree89710efb77f374a4e0d595607f3f4ac49a3cd070
parenteb9b9b1e193e93da38b4773d90686cc7ffb077ec
i2c: iproc: Replace udelay() with usleep_range()

Replace udelay(100) with usleep_range(100, 200) as recommended
by kernel documentation. The delay is not in atomic context, so
busy-waiting is unnecessary.

Also update the comment for clarity.

Link: https://lore.kernel.org/r/20250418211635.2666234-7-andi.shyti@kernel.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-bcm-iproc.c