regmap: new API regmap_multi_reg_write() definition
authorAnthony Olech <anthony.olech.opensource@diasemi.com>
Fri, 11 Oct 2013 14:31:11 +0000 (15:31 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Oct 2013 14:09:16 +0000 (15:09 +0100)
commite33fabd365596178e72f62bb4b89f0aaad0509ad
tree6c0aad1f15bc40d0596cd4678658ad51022029fc
parent61e6cfa80de5760bbe406f4e815b7739205754d2
regmap: new API regmap_multi_reg_write() definition

New API regmap_multi_reg_write() is defined that allows a set of reg,val
pairs to be written to a I2C client device as one block transfer from the
point of view of a single I2C master system.

A simple demonstration implementation is included that just splits the
block write request into a sequence of single register writes.

The implementation will be modified later to support those I2C clients
that implement the alternative non-standard MULTIWRITE block write mode
so to achieve a single I2C transfer that will be atomic even in multiple
I2C master systems.

Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: David Dajun Chen <david.chen@diasemi.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h