Skip to content
Commit e33fabd3 authored by Anthony Olech's avatar Anthony Olech Committed by Mark Brown
Browse files

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: default avatarAnthony Olech <anthony.olech.opensource@diasemi.com>
Signed-off-by: default avatarDavid Dajun Chen <david.chen@diasemi.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 61e6cfa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment