regmap: constify regmap_bus structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 11 Aug 2017 06:57:36 +0000 (08:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:36:29 +0000 (17:36 +0100)
commit9c2e5cb38da2202c6591efec631562116761521f
tree6cbb756e1ed671d67ebfa3cbf448da0f9f0b846c
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
regmap: constify regmap_bus structures

These regmap_bus structures are only passed as the second argument to
__devm_regmap_init or __regmap_init, both of which are const, so the
regmap_bus structures can be const too.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-spi.c
drivers/base/regmap/regmap-spmi.c