]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/video/backlight/lcd.c: return ENXIO when ops functions cannot be called
authorJingoo Han <jg1.han@samsung.com>
Thu, 29 Nov 2012 03:18:31 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:33 +0000 (16:23 +1100)
commit3d70b10ab34e7fef944e3b5b5f3346002212c503
tree5e33aaf857e2b07ea2442587fa20e35abc5b6962
parent6605d04f55ca838f0035bd9d37694ea5417d83df
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>
drivers/video/backlight/lcd.c