backlight: Catch invalid input in sysfs attributes
commitbfe3d38e8a539e8b071cfe3723baea17b074ada1
authorPavel Machek <pavel@suse.cz>
Fri, 13 May 2011 12:22:16 +0000 (13 09:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:22:16 +0000 (13 09:22 -0300)
treee9bb1dde1190253838c30c0303b0ea5a7e49c298
parentbbb6ae48d7a43325cb938ab1c50f644d9ce3fcd3
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