[PATCH] Backlight/LCD Class: Fix sysfs _store error handling
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 15 May 2006 16:44:15 +0000 (09:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 15 May 2006 18:20:56 +0000 (11:20 -0700)
commit68673afd443c5eeb4cebfb9026e3675f43d79f2b
treeb8350ec63cee168284b35016aa097334c215d633
parenta8d2e7d95229db9999682113bfac40b49978f212
[PATCH] Backlight/LCD Class: Fix sysfs _store error handling

The backlight and LCD class _store functions currently accept values like "34
some random strings" without error.  This corrects them to return -EINVAL if
the value is not numeric with an optional byte of trailing whitespace.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/backlight/backlight.c
drivers/video/backlight/lcd.c