i2c: Use put_user instead of copy_to_user where possible
authorJean Delvare <khali@linux-fr.org>
Sun, 10 Dec 2006 20:21:30 +0000 (21:21 +0100)
committerJean Delvare <khali@arrakis.delvare>
Sun, 10 Dec 2006 20:21:30 +0000 (21:21 +0100)
commit2c003e8e1c0c241aec162ba9ec781089c5b2ff3f
tree612ab73ce5a6810bd3fb459520798b7a62e670d3
parent813e30e9ab917f5493147451cfdbf6356a3dcee0
i2c: Use put_user instead of copy_to_user where possible

This speeds up the I2C_FUNCS ioctl by 5 to 8% in my tests.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Laughed-at-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/i2c/i2c-dev.c