aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/s6e63m0.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-02-21 19:43:24 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 20:22:22 -0500
commit81c650e3accca9ca20232e96058aa759ceae06a5 (patch)
tree5d5729900fd38f9e3d90b7dfea20779f74f7eb92 /drivers/video/backlight/s6e63m0.c
parent892dc2e6603034188f51b30e702498a51d8c7365 (diff)
backlight: s6e63m0: replace EFAULT with EINVAL
Replace EFAULT with EINVAL, because EFAULT tends to be for the invalid memory addresses. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/s6e63m0.c')
-rw-r--r--drivers/video/backlight/s6e63m0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c
index 633f0d3fd6f7..87831bba7a89 100644
--- a/drivers/video/backlight/s6e63m0.c
+++ b/drivers/video/backlight/s6e63m0.c
@@ -515,7 +515,7 @@ static int s6e63m0_power_on(struct s6e63m0 *lcd)
515 515
516 if (!pd->power_on) { 516 if (!pd->power_on) {
517 dev_err(lcd->dev, "power_on is NULL.\n"); 517 dev_err(lcd->dev, "power_on is NULL.\n");
518 return -EFAULT; 518 return -EINVAL;
519 } else { 519 } else {
520 pd->power_on(lcd->ld, 1); 520 pd->power_on(lcd->ld, 1);
521 msleep(pd->power_on_delay); 521 msleep(pd->power_on_delay);
@@ -523,7 +523,7 @@ static int s6e63m0_power_on(struct s6e63m0 *lcd)
523 523
524 if (!pd->reset) { 524 if (!pd->reset) {
525 dev_err(lcd->dev, "reset is NULL.\n"); 525 dev_err(lcd->dev, "reset is NULL.\n");
526 return -EFAULT; 526 return -EINVAL;
527 } else { 527 } else {
528 pd->reset(lcd->ld); 528 pd->reset(lcd->ld);
529 msleep(pd->reset_delay); 529 msleep(pd->reset_delay);
@@ -747,7 +747,7 @@ static int s6e63m0_probe(struct spi_device *spi)
747 lcd->lcd_pd = spi->dev.platform_data; 747 lcd->lcd_pd = spi->dev.platform_data;
748 if (!lcd->lcd_pd) { 748 if (!lcd->lcd_pd) {
749 dev_err(&spi->dev, "platform data is NULL.\n"); 749 dev_err(&spi->dev, "platform data is NULL.\n");
750 return -EFAULT; 750 return -EINVAL;
751 } 751 }
752 752
753 ld = lcd_device_register("s6e63m0", &spi->dev, lcd, &s6e63m0_lcd_ops); 753 ld = lcd_device_register("s6e63m0", &spi->dev, lcd, &s6e63m0_lcd_ops);