aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c-dev.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-02-24 13:19:49 -0500
committerJean Delvare <khali@linux-fr.org>2009-02-24 13:19:49 -0500
commitcd97f39b7cdf1c8a9c9f52865eec795b7f0c811d (patch)
tree010cd2255376a95120da810a1600bbd8d4d7d1c3 /include/linux/i2c-dev.h
parenta746b578d8406b2db0e9f0d040061bc1f78433cf (diff)
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>
Diffstat (limited to 'include/linux/i2c-dev.h')
-rw-r--r--include/linux/i2c-dev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c-dev.h b/include/linux/i2c-dev.h
index 311315b56b61..fd53bfd26470 100644
--- a/include/linux/i2c-dev.h
+++ b/include/linux/i2c-dev.h
@@ -33,7 +33,7 @@
33 */ 33 */
34#define I2C_RETRIES 0x0701 /* number of times a device address should 34#define I2C_RETRIES 0x0701 /* number of times a device address should
35 be polled when not acknowledging */ 35 be polled when not acknowledging */
36#define I2C_TIMEOUT 0x0702 /* set timeout in jiffies - call with int */ 36#define I2C_TIMEOUT 0x0702 /* set timeout in units of 10 ms */
37 37
38/* NOTE: Slave address is 7 or 10 bits, but 10-bit addresses 38/* NOTE: Slave address is 7 or 10 bits, but 10-bit addresses
39 * are NOT supported! (due to code brokenness) 39 * are NOT supported! (due to code brokenness)