regmap: i2c: fallback to SMBus if the adapter does not support standard I2C
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 21 Apr 2014 20:56:59 +0000 (22:56 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 22 Apr 2014 11:57:28 +0000 (12:57 +0100)
Some I2C adapters are only compatible with the SMBus protocol and do not
support standard I2C transfers.

Fallback to SMBus transfers if we encounter such kind of adapters.
The transfer type is chosen according to the val_bits field in the regmap
config.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap-i2c.c

Simple merge