]> 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)
commit841177cda3a9cb361c20390b1336dcda9a13389a
treefa1d655bc813477914a4bca5fd0ca1d6833d2256
parent9142badac7734f2c5ef5f2dee897d46be5b239ca
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