regmap: debugfs: Fix return from regmap_debugfs_get_dump_start
commit213fa5d9685b985e0c61a8db1883a3abf94b18d7
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 14 May 2013 06:54:23 +0000 (14 07:54 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 14 May 2013 12:53:45 +0000 (14 16:53 +0400)
tree9b7e8d6d71fc429ae0067d1d088ac4d8693c5a1d
parentf9e464a566a1c3c9b71558e5523288b5432c3e3f
regmap: debugfs: Fix return from regmap_debugfs_get_dump_start

regmap_debugfs_get_dump_start should return the offset of the register
it should start reading from, However in the current code at one point
the code does not return correct register offset.

With this patch all the returns from this function takes reg_stride in
to consideration to return correct offset.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-debugfs.c