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)
commitb42261078a91db8a8307db42cad41a619077d1df
treefa1d655bc813477914a4bca5fd0ca1d6833d2256
parent3ac170376f2c5123414e0267aa0f9cf218965e24
regmap: i2c: fallback to SMBus if the adapter does not support standard I2C

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