Home
last modified time | relevance | path

Searched hist:"24 d321284745cbc593fba8115585329d48703704" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/leds/
H A Dleds-lp55xx-common.cdiff 24d321284745cbc593fba8115585329d48703704 Thu Mar 14 19:19:36 CDT 2013 Kim, Milo <Milo.Kim@ti.com> 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>
H A Dleds-lp5521.cdiff 24d321284745cbc593fba8115585329d48703704 Thu Mar 14 19:19:36 CDT 2013 Kim, Milo <Milo.Kim@ti.com> 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>