i2c-dev: Split i2cdev_ioctl
authorJean Delvare <khali@linux-fr.org>
Tue, 22 Apr 2008 20:16:47 +0000 (22:16 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 22 Apr 2008 20:16:47 +0000 (22:16 +0200)
commitdba7997a87cd12b815c0d58b2a0522a8bb0cf5ec
treef64fc267508c3136c988562df6eddd7b9f4a15c9
parent838349b5c6454ebce8ec3e8c448941cf8608ffea
i2c-dev: Split i2cdev_ioctl

Split the handling of the I2C_RDWR and I2C_SMBUS ioctls to their own
functions. This limits the stack usage, saves one level of indentation
and makes the code more readable.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-dev.c