]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85953ae0283b3101beb0ee05663481286223dfd0
treefa1d655bc813477914a4bca5fd0ca1d6833d2256
parent6c555a6f5c11dc242f06e2911edc18cf825aef15
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