]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
i2c: Split I2C_M_NOSTART support out of I2C_FUNC_PROTOCOL_MANGLING
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 May 2012 08:55:34 +0000 (10:55 +0200)
committerJean Delvare <khali@endymion.delvare>
Wed, 30 May 2012 08:55:34 +0000 (10:55 +0200)
commit14674e70119ea01549ce593d8901a797f8a90f74
tree15474236bfa505aa396bf2892cbbee65e842b94b
parent838bfa6049fb84dc66c9c9bbeb3a968ec987fd3d
i2c: Split I2C_M_NOSTART support out of I2C_FUNC_PROTOCOL_MANGLING

Since there are uses for I2C_M_NOSTART which are much more sensible and
standard than most of the protocol mangling functionality (the main one
being gather writes to devices where something like a register address
needs to be inserted before a block of data) create a new I2C_FUNC_NOSTART
for this feature and update all the users to use it.

Also strengthen the disrecommendation of the protocol mangling while we're
at it.

In the case of regmap-i2c we remove the requirement for mangling as
I2C_M_NOSTART is the only mangling feature which is being used.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Documentation/i2c/functionality
Documentation/i2c/i2c-protocol
drivers/base/regmap/regmap-i2c.c
drivers/i2c/algos/i2c-algo-bit.c
drivers/i2c/busses/i2c-nuc900.c
drivers/i2c/busses/i2c-s3c2410.c
drivers/input/joystick/as5011.c
drivers/video/matrox/matroxfb_maven.c
include/linux/i2c.h