]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
s1d13xxxfb: drop unused code
authorAndres Salomon <dilinger@queued.net>
Sat, 18 Dec 2010 03:00:13 +0000 (19:00 -0800)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 20 Dec 2010 16:05:43 +0000 (01:05 +0900)
Silence warnings such as -

drivers/video/s1d13xxxfb.c:421: warning: ‘bltbit_wait_bitset’ defined but not used

Just drop the unused code.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/s1d13xxxfb.c
include/video/s1d13xxxfb.h

index a6247fc081ab9fb80671b6fd34b611d0484586d5..28b1c6c3d8ac98054ca2aad04021d4107cd01662 100644 (file)
@@ -409,28 +409,6 @@ s1d13xxxfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
  functions to handle bitblt acceleration
  ************************************************************/
 
-/**
- *     bltbit_wait_bitset - waits for change in register value
- *     @info : framebuffer structure
- *     @bit  : value expected in register
- *     @timeout : ...
- *
- *     waits until value changes INTO bit
- */
-static u8
-bltbit_wait_bitset(struct fb_info *info, u8 bit, int timeout)
-{
-       while (!(s1d13xxxfb_readreg(info->par, S1DREG_BBLT_CTL0) & bit)) {
-               udelay(10);
-               if (!--timeout) {
-                       dbg_blit("wait_bitset timeout\n");
-                       break;
-               }
-       }
-
-       return timeout;
-}
-
 /**
  *     bltbit_wait_bitclear - waits for change in register value
  *     @info : frambuffer structure
@@ -454,34 +432,6 @@ bltbit_wait_bitclear(struct fb_info *info, u8 bit, int timeout)
        return timeout;
 }
 
-/**
- *     bltbit_fifo_status - checks the current status of the fifo
- *     @info : framebuffer structure
- *
- *     returns number of free words in buffer
- */
-static u8
-bltbit_fifo_status(struct fb_info *info)
-{
-       u8 status;
-
-       status = s1d13xxxfb_readreg(info->par, S1DREG_BBLT_CTL0);
-
-       /* its empty so room for 16 words */
-       if (status & BBLT_FIFO_EMPTY)
-               return 16;
-
-       /* its full so we dont want to add */
-       if (status & BBLT_FIFO_FULL)
-               return 0;
-
-       /* its atleast half full but we can add one atleast */
-       if (status & BBLT_FIFO_NOT_FULL)
-               return 1;
-
-       return 0;
-}
-
 /*
  *     s1d13xxxfb_bitblt_copyarea - accelerated copyarea function
  *     @info : framebuffer structure
index f0736cff2ca3f15f2762634726f55a6f27af22e7..55f534491a3d1daac6f6c2ec9bc83ccc33082c38 100644 (file)
 #define S1DREG_DELAYOFF                        0xFFFE
 #define S1DREG_DELAYON                 0xFFFF
 
-#define BBLT_FIFO_EMPTY                        0x00
-#define BBLT_FIFO_NOT_EMPTY            0x40
-#define BBLT_FIFO_NOT_FULL             0x30
-#define BBLT_FIFO_HALF_FULL            0x20
-#define BBLT_FIFO_FULL                 0x10
-
 #define BBLT_SOLID_FILL                        0x0c