]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-dev: Clarify the unit of ioctl I2C_TIMEOUT
authorJean Delvare <khali@linux-fr.org>
Tue, 24 Feb 2009 18:19:49 +0000 (19:19 +0100)
committerJean Delvare <khali@linux-fr.org>
Tue, 24 Feb 2009 18:19:49 +0000 (19:19 +0100)
commit485d5e874c3a32ed1d4df5321566e4a51a6b3d3c
tree010cd2255376a95120da810a1600bbd8d4d7d1c3
parent016db5a85fd17147d7a6cc1c634d2add64e12084
i2c-dev: Clarify the unit of ioctl I2C_TIMEOUT

The unit in which user-space can set the bus timeout value is jiffies
for historical reasons (back when HZ was always 100.) This is however
not good because user-space doesn't know how long a jiffy lasts. The
timeout value should instead be set in a fixed time unit. Given the
original value of HZ, this unit should be 10 ms, for compatibility.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/i2c-dev.c
include/linux/i2c-dev.h
include/linux/i2c.h