]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: syscon: Set regmap max_register in of_syscon_register
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 29 Jan 2016 09:35:51 +0000 (10:35 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 12 Feb 2016 09:20:11 +0000 (09:20 +0000)
commitc89c0114955a6e89111f50f60c058678fb9fae5f
tree509059c52950b97d31a00cfecba5d20e95427763
parent3a5f21c7e5492732f21611abe9901ab00a9935d1
mfd: syscon: Set regmap max_register in of_syscon_register

Determine the regmap max_register configuration from the io resource size
and the reg-io-width device tree property.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/syscon.c