regmap: Introduce regmap_get_reg_stride
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 21 May 2015 16:42:54 +0000 (17:42 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 22 May 2015 11:19:21 +0000 (12:19 +0100)
commita2f776cbb8271d7149784207da0b0c51e8b1847c
tree3d9af717987966cda8ff7e2c8e026ad1b3f48aeb
parent668abc729fcb9d034eccadf63166d2c76cd645d1
regmap: Introduce regmap_get_reg_stride

This patch introduces regmap_get_reg_stride() function which would
be used by the infrastructures like nvmem framework built on top of
regmap. Mostly this function would be used for sanity checks on inputs
within such infrastructure.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h