From: Kim, Milo Date: Fri, 15 Mar 2013 00:19:36 +0000 (-0700) Subject: leds: lp55xx: fix the sysfs read operation X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~22^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d321284745cbc593fba8115585329d48703704;p=pandora-kernel.git leds: lp55xx: fix the sysfs read operation According to a sysfs documentation(Documentation/filesystem/sysfs.txt), scnprintf() should be used in a read operation method. It guarantees safe buffer size(PAGE_SIZE) which is allocated by the sysfs. Signed-off-by: Milo(Woogyom) Kim Signed-off-by: Bryan Wu --- Reading git-diff-tree failed