aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/udlfb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-06-03 17:47:21 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 14:00:57 -0400
commit4b6a4856c6b6e3bb7839b15296712627b7a37208 (patch)
treeb4d16d7febff9ab770f6313f0a2852957c21518d /drivers/staging/udlfb
parentf05e0575ed334a23dad91b8f6ed0ac42a3996b8d (diff)
Staging: udlfb: fix some sparse warnings.
There are others remaining due to the __iomem namespace of the framebuffer data pointer. Cc: Roberto De Ioris <roberto@unbit.it> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/udlfb')
-rw-r--r--drivers/staging/udlfb/udlfb.c6
-rw-r--r--drivers/staging/udlfb/udlfb.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/udlfb/udlfb.c b/drivers/staging/udlfb/udlfb.c
index 45b8ae7882d..08165997f80 100644
--- a/drivers/staging/udlfb/udlfb.c
+++ b/drivers/staging/udlfb/udlfb.c
@@ -422,7 +422,7 @@ copyarea(struct dlfb_data *dev_info, int dx, int dy, int sx, int sy,
422 return 1; 422 return 1;
423} 423}
424 424
425void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) 425static void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
426{ 426{
427 427
428 struct dlfb_data *dev = info->par; 428 struct dlfb_data *dev = info->par;
@@ -434,7 +434,7 @@ void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
434 434
435} 435}
436 436
437void dlfb_imageblit(struct fb_info *info, const struct fb_image *image) 437static void dlfb_imageblit(struct fb_info *info, const struct fb_image *image)
438{ 438{
439 439
440 int ret; 440 int ret;
@@ -447,7 +447,7 @@ void dlfb_imageblit(struct fb_info *info, const struct fb_image *image)
447 /* printk("IMAGE BLIT (2) %d %d %d %d DEPTH %d {%p} %d!!!\n", image->dx, image->dy, image->width, image->height, image->depth, dev->udev, ret); */ 447 /* printk("IMAGE BLIT (2) %d %d %d %d DEPTH %d {%p} %d!!!\n", image->dx, image->dy, image->width, image->height, image->depth, dev->udev, ret); */
448} 448}
449 449
450void dlfb_fillrect(struct fb_info *info, const struct fb_fillrect *region) 450static void dlfb_fillrect(struct fb_info *info, const struct fb_fillrect *region)
451{ 451{
452 452
453 unsigned char red, green, blue; 453 unsigned char red, green, blue;
diff --git a/drivers/staging/udlfb/udlfb.h b/drivers/staging/udlfb/udlfb.h
index 70a165b46e5..f69b1c586c1 100644
--- a/drivers/staging/udlfb/udlfb.h
+++ b/drivers/staging/udlfb/udlfb.h
@@ -40,7 +40,7 @@ struct dlfb_video_mode {
40 uint8_t unknown3[4]; 40 uint8_t unknown3[4];
41} __attribute__ ((__packed__)); 41} __attribute__ ((__packed__));
42 42
43struct dlfb_video_mode dlfb_video_modes[MAX_VMODES]; 43static struct dlfb_video_mode dlfb_video_modes[MAX_VMODES];
44 44
45static void dlfb_bulk_callback(struct urb *urb) 45static void dlfb_bulk_callback(struct urb *urb)
46{ 46{
@@ -66,7 +66,7 @@ static int dlfb_bulk_msg(struct dlfb_data *dev_info, int len)
66 return dev_info->tx_urb->actual_length; 66 return dev_info->tx_urb->actual_length;
67} 67}
68 68
69void dlfb_init_modes(void) 69static void dlfb_init_modes(void)
70{ 70{
71 dlfb_video_modes[0].col = 0; 71 dlfb_video_modes[0].col = 0;
72 memcpy(&dlfb_video_modes[0].hclock, "\x20\x3C\x7A\xC9", 4); 72 memcpy(&dlfb_video_modes[0].hclock, "\x20\x3C\x7A\xC9", 4);
@@ -105,7 +105,7 @@ void dlfb_init_modes(void)
105 memcpy(&dlfb_video_modes[3].unknown3, "\x04\x02\x1E\x5F", 4); 105 memcpy(&dlfb_video_modes[3].unknown3, "\x04\x02\x1E\x5F", 4);
106} 106}
107 107
108char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val) 108static char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val)
109{ 109{
110 *bufptr++ = 0xAF; 110 *bufptr++ = 0xAF;
111 *bufptr++ = 0x20; 111 *bufptr++ = 0x20;
@@ -115,7 +115,7 @@ char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val)
115 return bufptr; 115 return bufptr;
116} 116}
117 117
118int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height) 118static int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height)
119{ 119{
120 int i, ret; 120 int i, ret;
121 unsigned char j; 121 unsigned char j;