]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
backlight: Catch invalid input in sysfs attributes
authorPavel Machek <pavel@suse.cz>
Wed, 3 Dec 2008 08:43:48 +0000 (08:43 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 8 Jan 2009 12:37:28 +0000 (12:37 +0000)
commit9a2c61a921a8aeabacaccad0d2fdf75e1c1475fb
tree46aceedf2a75a9025422b7c159e54704e47767db
parent866bbdba7795cac2da24853ea2259e0e4ef7d02d
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