android_kernel_google_msm/drivers/base/regmap
Mark Brown 42bffe1abd regmap: debugfs: Don't bother actually printing when calculating max length
commit 176fc2d5770a0990eebff903ba680d2edd32e718 upstream.

The in kernel snprintf() will conveniently return the actual length of
the printed string even if not given an output beffer at all so just do
that rather than relying on the user to pass in a suitable buffer,
ensuring that we don't need to worry if the buffer was truncated due to
the size of the buffer passed in.

Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-04-27 18:55:23 +08:00
..
internal.h Merge remote-tracking branches 'regmap/topic/patch' and 'regmap/topic/sync' into regmap-next 2012-03-14 13:14:24 +00:00
Kconfig regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
Makefile regmap: Remove indexed cache type 2011-11-20 20:56:34 +00:00
regcache-lzo.c The following text was taken from the original review request: 2012-03-24 10:41:37 -07:00
regcache-rbtree.c regmap: cache Fix regcache-rbtree sync 2013-04-12 09:38:43 -07:00
regcache.c regmap: Export regcache_sync_region() 2012-04-03 13:08:53 +01:00
regmap-debugfs.c regmap: debugfs: Don't bother actually printing when calculating max length 2016-04-27 18:55:23 +08:00
regmap-i2c.c regmap: Implement managed regmap_init() 2012-01-30 21:06:43 +00:00
regmap-irq.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
regmap-spi.c regmap: Implement managed regmap_init() 2012-01-30 21:06:43 +00:00
regmap.c regmap: Fix regmap_bulk_read in BE mode 2015-10-22 09:20:04 +08:00