Staging: sm750fb: fix build warning with proc_panDisplay
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Mar 2015 20:20:52 +0000 (21:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Mar 2015 20:22:20 +0000 (21:22 +0100)
Change the options to the proc_panDisplay function pointer to match the
function pointer that we want to assign to it, in order to remove the
build warning.

Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
drivers/staging/sm750fb/sm750.h

index 5361116..efe999a 100644 (file)
@@ -120,8 +120,9 @@ struct lynxfb_crtc{
        int(*proc_setColReg)(struct lynxfb_crtc*,ushort,ushort,ushort,ushort);
        void (*clear)(struct lynxfb_crtc*);
         /* pan display */
-        int(*proc_panDisplay)(struct lynxfb_crtc*, struct fb_var_screeninfo*,
-                struct fb_info*);
+       int (*proc_panDisplay)(struct lynxfb_crtc *,
+                              const struct fb_var_screeninfo *,
+                              const struct fb_info *);
        /* cursor information */
        struct lynx_cursor cursor;
 };