]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regmap: debugfs: use memcpy instead of snprintf
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 30 Sep 2015 18:30:26 +0000 (20:30 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 30 Sep 2015 19:31:16 +0000 (20:31 +0100)
commit20991cdb26ffc51030223320a6dd266f4fc28fbd
tree11e78b3481be4949942903d6899405de6bc14a27
parente34dc490713f8d9dfbbb5bb56d966d90a9344131
regmap: debugfs: use memcpy instead of snprintf

Since we know the length of entry and that there's room enough in the
output buffer, using memcpy instead of snprintf is simpler and
cheaper.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-debugfs.c