leds: lp55xx: fix the sysfs read operation
authorKim, Milo <Milo.Kim@ti.com>
Fri, 15 Mar 2013 00:19:36 +0000 (17:19 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 1 Apr 2013 18:04:50 +0000 (11:04 -0700)
commit24d321284745cbc593fba8115585329d48703704
treee8c266b2b30024980e353ee26086318e02c73f22
parent313bf0b1a0eaeaac17ea8c4b748f16e28fce8b7a
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 <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp5521.c
drivers/leds/leds-lp55xx-common.c