diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-03 17:47:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 14:00:57 -0400 |
commit | 4b6a4856c6b6e3bb7839b15296712627b7a37208 (patch) | |
tree | b4d16d7febff9ab770f6313f0a2852957c21518d /drivers/staging | |
parent | f05e0575ed334a23dad91b8f6ed0ac42a3996b8d (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')
-rw-r--r-- | drivers/staging/udlfb/udlfb.c | 6 | ||||
-rw-r--r-- | drivers/staging/udlfb/udlfb.h | 8 |
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 | ||
425 | void dlfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) | 425 | static 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 | ||
437 | void dlfb_imageblit(struct fb_info *info, const struct fb_image *image) | 437 | static 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 | ||
450 | void dlfb_fillrect(struct fb_info *info, const struct fb_fillrect *region) | 450 | static 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 | ||
43 | struct dlfb_video_mode dlfb_video_modes[MAX_VMODES]; | 43 | static struct dlfb_video_mode dlfb_video_modes[MAX_VMODES]; |
44 | 44 | ||
45 | static void dlfb_bulk_callback(struct urb *urb) | 45 | static 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 | ||
69 | void dlfb_init_modes(void) | 69 | static 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 | ||
108 | char *dlfb_set_register(char *bufptr, uint8_t reg, uint8_t val) | 108 | static 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 | ||
118 | int dlfb_set_video_mode(struct dlfb_data *dev_info, int width, int height) | 118 | static 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; |