regmap: spi: Handle async writes of only one buffer
authorMark Brown <broonie@linaro.org>
Thu, 10 Oct 2013 21:25:23 +0000 (22:25 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Oct 2013 21:09:26 +0000 (22:09 +0100)
commitcd1b9dd0220d3c126b3b61c1f96f0832fc21fc61
tree5f964cb904c26120d9302f54804d1e7645b15031
parent7ccda983931f64e9c89a9b16e6d4adeb92817d96
regmap: spi: Handle async writes of only one buffer

If the value is zero then assume it has been included in the register data
and don't send anything, minimising the number of interactions with the
hardware.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap-spi.c