Re: [PATCH] leds: lp55xx: fix the sysfs read operation

2013-03-14 Thread Bryan Wu
On Thu, Mar 14, 2013 at 5:19 PM, Kim, Milo wrote: > 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. > Oh, I missed that. Great, I merged it

[PATCH] leds: lp55xx: fix the sysfs read operation

2013-03-14 Thread Kim, Milo
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 --- drivers/leds/leds-lp5521.c|3 ++- drivers/led