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>
Wed, 16 Mar 2016 08:50:17 +0000 (08:50 +0000)
commitca668f0edfae65438c3f0a3ad5d3e59e3515915f
tree9cc3e75df007c245168c09e5d4e603bb5840c633
parenta7e46317722ccdac6ae3bdb9476a1ec21b7aab6d
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