Skip to content
Snippets Groups Projects
Commit 84c1af4c authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare
Browse files

i2c-i801: Use usleep_range to wait for command completion


Use usleep_range instead of msleep when waiting for command
completion. Most SMBus commands complete in less than 2 jiffies so
this brings a pleasant performance boost.

Strongly inspired from a similar change by Olivier Sobrie to the
i2c-isch driver.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Olivier Sobrie <olivier@sobrie.be>
parent 062737fb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment