regmap: fix writes to non incrementing registers
authorBen Whitten <ben.whitten@gmail.com>
Sat, 18 Jan 2020 20:56:24 +0000 (20:56 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 21 Jan 2020 17:16:26 +0000 (17:16 +0000)
commit2e31aab08bad0d4ee3d3d890a7b74cb6293e0a41
tree7e5a4e5c28ccfd1d7ea76d873984059fd6b0a93f
parent50816a4c39263913d8cfd1ee32f90102679606c6
regmap: fix writes to non incrementing registers

When checking if a register block is writable we must ensure that the
block does not start with or contain a non incrementing register.

Fixes: 8b9f9d4dc511 ("regmap: verify if register is writeable before writing operations")
Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
Link: https://lore.kernel.org/r/20200118205625.14532-1-ben.whitten@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c