aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/backlight/ams369fg06.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c
index f57e1905236a..55b27921bf9e 100644
--- a/drivers/video/backlight/ams369fg06.c
+++ b/drivers/video/backlight/ams369fg06.c
@@ -210,8 +210,9 @@ static int ams369fg06_panel_send_sequence(struct ams369fg06 *lcd,
210 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); 210 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]);
211 if (ret) 211 if (ret)
212 break; 212 break;
213 } else 213 } else {
214 mdelay(wbuf[i+1]); 214 msleep(wbuf[i+1]);
215 }
215 i += 2; 216 i += 2;
216 } 217 }
217 218
@@ -339,7 +340,7 @@ static int ams369fg06_power_on(struct ams369fg06 *lcd)
339 return -EFAULT; 340 return -EFAULT;
340 } else { 341 } else {
341 pd->power_on(lcd->ld, 1); 342 pd->power_on(lcd->ld, 1);
342 mdelay(pd->power_on_delay); 343 msleep(pd->power_on_delay);
343 } 344 }
344 345
345 if (!pd->reset) { 346 if (!pd->reset) {
@@ -347,7 +348,7 @@ static int ams369fg06_power_on(struct ams369fg06 *lcd)
347 return -EFAULT; 348 return -EFAULT;
348 } else { 349 } else {
349 pd->reset(lcd->ld); 350 pd->reset(lcd->ld);
350 mdelay(pd->reset_delay); 351 msleep(pd->reset_delay);
351 } 352 }
352 353
353 ret = ams369fg06_ldi_init(lcd); 354 ret = ams369fg06_ldi_init(lcd);
@@ -389,7 +390,7 @@ static int ams369fg06_power_off(struct ams369fg06 *lcd)
389 return -EIO; 390 return -EIO;
390 } 391 }
391 392
392 mdelay(pd->power_off_delay); 393 msleep(pd->power_off_delay);
393 394
394 if (!pd->power_on) { 395 if (!pd->power_on) {
395 dev_err(lcd->dev, "power_on is NULL.\n"); 396 dev_err(lcd->dev, "power_on is NULL.\n");