backlight: Catch invalid input in sysfs attributes
commit0a0a35f74aef72e48d4caadeb1074f8f5722b196
authorPavel Machek <pavel@suse.cz>
Sat, 14 Nov 2009 02:56:31 +0000 (14 00:56 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 14 Nov 2009 02:56:31 +0000 (14 00:56 -0200)
treed14bac15195545031be24146e550db9d1b883672
parent5b3649bc687305e4ce955eea064fa1a85ed927cd
backlight: Catch invalid input in sysfs attributes

Check input properly in backlight, echo > brightness should not turn off
the backlight.

[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: fix printk warning]
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/backlight.c