]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/backlight/lcd.c: return ENXIO when ops functions cannot be called
authorJingoo Han <jg1.han@samsung.com>
Tue, 18 Dec 2012 00:01:10 +0000 (16:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:17 +0000 (17:15 -0800)
commit56799bfb1d7ecbc3fd73bd2018ae21247d397954
tree7e4ef6b9bb8762398df72b1fae7c539a9d2003f7
parenta8a72037a24cf41f2fbd0fa66afb5d30e70b2d1f
drivers/video/backlight/lcd.c: return ENXIO when ops functions cannot be called

Previously, when ops functions cannot be called, lcd_show_contrast() and
lcd_store_contrast() returned 0, instead of ENXIO.

Thus, in this case, a local variable 'rc' for return value should be
initialized as ENXIO, after kstrtoul() is called.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lcd.c