]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: debugfs: Fix reading in register field units
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 7 Feb 2013 10:51:56 +0000 (10:51 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Feb 2013 11:31:34 +0000 (11:31 +0000)
commitb6af21398f897d266a7cfdcba57d72e9b0209f4b
tree7e246716667bd4a4ce6da0cafd60777db529e3cb
parent3fbcfdd62035773829b54b5b25777e2a78d3aff7
regmap: debugfs: Fix reading in register field units

At the moment, if the length of the register field format is
N bytes, we can only get anything meaningful back to userspace
by providing a buffer that is N + 2 bytes large.  Fix this
so we that we only need to provide a buffer of N bytes.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-debugfs.c