aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-11-21 18:56:58 -0500
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-20 04:02:53 -0400
commitd7ad33421863308fe7ddf865737d4d83b64e5b81 (patch)
tree42e91c81317ad2832f91ad1527958a7393b93451
parent3281e54c80195b90ed12a5b6cddef4ab42e656e1 (diff)
fbdev: sh_mobile_lcdc: Rename fb operation handlers with a common prefix
Make all fb operation handlers start with sh_mobile_lcdc_ in preparation for the multi-plane support. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c48
1 files changed, 25 insertions, 23 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index 5461abeb5c5a..799f87171e04 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -384,8 +384,8 @@ sh_mobile_lcdc_must_reconfigure(struct sh_mobile_lcdc_chan *ch,
384 return true; 384 return true;
385} 385}
386 386
387static int sh_mobile_check_var(struct fb_var_screeninfo *var, 387static int sh_mobile_lcdc_check_var(struct fb_var_screeninfo *var,
388 struct fb_info *info); 388 struct fb_info *info);
389 389
390static int sh_mobile_lcdc_display_notify(struct sh_mobile_lcdc_chan *ch, 390static int sh_mobile_lcdc_display_notify(struct sh_mobile_lcdc_chan *ch,
391 enum sh_mobile_lcdc_entity_event event, 391 enum sh_mobile_lcdc_entity_event event,
@@ -439,7 +439,7 @@ static int sh_mobile_lcdc_display_notify(struct sh_mobile_lcdc_chan *ch,
439 fb_videomode_to_var(&var, mode); 439 fb_videomode_to_var(&var, mode);
440 var.bits_per_pixel = info->var.bits_per_pixel; 440 var.bits_per_pixel = info->var.bits_per_pixel;
441 var.grayscale = info->var.grayscale; 441 var.grayscale = info->var.grayscale;
442 ret = sh_mobile_check_var(&var, info); 442 ret = sh_mobile_lcdc_check_var(&var, info);
443 break; 443 break;
444 } 444 }
445 445
@@ -585,7 +585,7 @@ static irqreturn_t sh_mobile_lcdc_irq(int irq, void *data)
585 return IRQ_HANDLED; 585 return IRQ_HANDLED;
586} 586}
587 587
588static int sh_mobile_wait_for_vsync(struct sh_mobile_lcdc_chan *ch) 588static int sh_mobile_lcdc_wait_for_vsync(struct sh_mobile_lcdc_chan *ch)
589{ 589{
590 unsigned long ldintr; 590 unsigned long ldintr;
591 int ret; 591 int ret;
@@ -686,7 +686,7 @@ static void sh_mobile_lcdc_geometry(struct sh_mobile_lcdc_chan *ch)
686} 686}
687 687
688/* 688/*
689 * __sh_mobile_lcdc_start - Configure and tart the LCDC 689 * __sh_mobile_lcdc_start - Configure and start the LCDC
690 * @priv: LCDC device 690 * @priv: LCDC device
691 * 691 *
692 * Configure all enabled channels and start the LCDC device. All external 692 * Configure all enabled channels and start the LCDC device. All external
@@ -1035,8 +1035,8 @@ static void sh_mobile_lcdc_imageblit(struct fb_info *info,
1035 sh_mobile_lcdc_deferred_io_touch(info); 1035 sh_mobile_lcdc_deferred_io_touch(info);
1036} 1036}
1037 1037
1038static int sh_mobile_fb_pan_display(struct fb_var_screeninfo *var, 1038static int sh_mobile_lcdc_pan(struct fb_var_screeninfo *var,
1039 struct fb_info *info) 1039 struct fb_info *info)
1040{ 1040{
1041 struct sh_mobile_lcdc_chan *ch = info->par; 1041 struct sh_mobile_lcdc_chan *ch = info->par;
1042 struct sh_mobile_lcdc_priv *priv = ch->lcdc; 1042 struct sh_mobile_lcdc_priv *priv = ch->lcdc;
@@ -1099,14 +1099,15 @@ static int sh_mobile_fb_pan_display(struct fb_var_screeninfo *var,
1099 return 0; 1099 return 0;
1100} 1100}
1101 1101
1102static int sh_mobile_ioctl(struct fb_info *info, unsigned int cmd, 1102static int sh_mobile_lcdc_ioctl(struct fb_info *info, unsigned int cmd,
1103 unsigned long arg) 1103 unsigned long arg)
1104{ 1104{
1105 struct sh_mobile_lcdc_chan *ch = info->par;
1105 int retval; 1106 int retval;
1106 1107
1107 switch (cmd) { 1108 switch (cmd) {
1108 case FBIO_WAITFORVSYNC: 1109 case FBIO_WAITFORVSYNC:
1109 retval = sh_mobile_wait_for_vsync(info->par); 1110 retval = sh_mobile_lcdc_wait_for_vsync(ch);
1110 break; 1111 break;
1111 1112
1112 default: 1113 default:
@@ -1158,7 +1159,7 @@ static void sh_mobile_fb_reconfig(struct fb_info *info)
1158 * Locking: both .fb_release() and .fb_open() are called with info->lock held if 1159 * Locking: both .fb_release() and .fb_open() are called with info->lock held if
1159 * user == 1, or with console sem held, if user == 0. 1160 * user == 1, or with console sem held, if user == 0.
1160 */ 1161 */
1161static int sh_mobile_release(struct fb_info *info, int user) 1162static int sh_mobile_lcdc_release(struct fb_info *info, int user)
1162{ 1163{
1163 struct sh_mobile_lcdc_chan *ch = info->par; 1164 struct sh_mobile_lcdc_chan *ch = info->par;
1164 1165
@@ -1179,7 +1180,7 @@ static int sh_mobile_release(struct fb_info *info, int user)
1179 return 0; 1180 return 0;
1180} 1181}
1181 1182
1182static int sh_mobile_open(struct fb_info *info, int user) 1183static int sh_mobile_lcdc_open(struct fb_info *info, int user)
1183{ 1184{
1184 struct sh_mobile_lcdc_chan *ch = info->par; 1185 struct sh_mobile_lcdc_chan *ch = info->par;
1185 1186
@@ -1192,7 +1193,8 @@ static int sh_mobile_open(struct fb_info *info, int user)
1192 return 0; 1193 return 0;
1193} 1194}
1194 1195
1195static int sh_mobile_check_var(struct fb_var_screeninfo *var, struct fb_info *info) 1196static int sh_mobile_lcdc_check_var(struct fb_var_screeninfo *var,
1197 struct fb_info *info)
1196{ 1198{
1197 struct sh_mobile_lcdc_chan *ch = info->par; 1199 struct sh_mobile_lcdc_chan *ch = info->par;
1198 struct sh_mobile_lcdc_priv *p = ch->lcdc; 1200 struct sh_mobile_lcdc_priv *p = ch->lcdc;
@@ -1313,7 +1315,7 @@ static int sh_mobile_check_var(struct fb_var_screeninfo *var, struct fb_info *in
1313 return 0; 1315 return 0;
1314} 1316}
1315 1317
1316static int sh_mobile_set_par(struct fb_info *info) 1318static int sh_mobile_lcdc_set_par(struct fb_info *info)
1317{ 1319{
1318 struct sh_mobile_lcdc_chan *ch = info->par; 1320 struct sh_mobile_lcdc_chan *ch = info->par;
1319 int ret; 1321 int ret;
@@ -1383,8 +1385,8 @@ static int sh_mobile_lcdc_blank(int blank, struct fb_info *info)
1383 * mode will reenable the clocks and update the screen in time, 1385 * mode will reenable the clocks and update the screen in time,
1384 * so it does not need this. */ 1386 * so it does not need this. */
1385 if (!info->fbdefio) { 1387 if (!info->fbdefio) {
1386 sh_mobile_wait_for_vsync(ch); 1388 sh_mobile_lcdc_wait_for_vsync(ch);
1387 sh_mobile_wait_for_vsync(ch); 1389 sh_mobile_lcdc_wait_for_vsync(ch);
1388 } 1390 }
1389 sh_mobile_lcdc_clk_off(p); 1391 sh_mobile_lcdc_clk_off(p);
1390 } 1392 }
@@ -1402,12 +1404,12 @@ static struct fb_ops sh_mobile_lcdc_ops = {
1402 .fb_copyarea = sh_mobile_lcdc_copyarea, 1404 .fb_copyarea = sh_mobile_lcdc_copyarea,
1403 .fb_imageblit = sh_mobile_lcdc_imageblit, 1405 .fb_imageblit = sh_mobile_lcdc_imageblit,
1404 .fb_blank = sh_mobile_lcdc_blank, 1406 .fb_blank = sh_mobile_lcdc_blank,
1405 .fb_pan_display = sh_mobile_fb_pan_display, 1407 .fb_pan_display = sh_mobile_lcdc_pan,
1406 .fb_ioctl = sh_mobile_ioctl, 1408 .fb_ioctl = sh_mobile_lcdc_ioctl,
1407 .fb_open = sh_mobile_open, 1409 .fb_open = sh_mobile_lcdc_open,
1408 .fb_release = sh_mobile_release, 1410 .fb_release = sh_mobile_lcdc_release,
1409 .fb_check_var = sh_mobile_check_var, 1411 .fb_check_var = sh_mobile_lcdc_check_var,
1410 .fb_set_par = sh_mobile_set_par, 1412 .fb_set_par = sh_mobile_lcdc_set_par,
1411}; 1413};
1412 1414
1413static void 1415static void
@@ -1537,7 +1539,7 @@ sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch,
1537 else 1539 else
1538 var->grayscale = ch->format->fourcc; 1540 var->grayscale = ch->format->fourcc;
1539 1541
1540 ret = sh_mobile_check_var(var, info); 1542 ret = sh_mobile_lcdc_check_var(var, info);
1541 if (ret) 1543 if (ret)
1542 return ret; 1544 return ret;
1543 1545