diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-01-09 23:53:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:44 -0500 |
commit | b8901b091db260b0f0101d6395ce5c6016835a47 (patch) | |
tree | c68cfe12b00da435e30fbba83df5e1a7e956896e /drivers/video/savage/savagefb_accel.c | |
parent | c439e345425434f07df333083794fc8864cee9ca (diff) |
[PATCH] fbdev: savagefb: Driver cleanup
- remove redundant casts
- remove symbol_get/symbol_put
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/savage/savagefb_accel.c')
-rw-r--r-- | drivers/video/savage/savagefb_accel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/savage/savagefb_accel.c b/drivers/video/savage/savagefb_accel.c index bac8ea3a0108..bbcc055d3bb7 100644 --- a/drivers/video/savage/savagefb_accel.c +++ b/drivers/video/savage/savagefb_accel.c | |||
@@ -21,7 +21,7 @@ static u32 savagefb_rop[] = { | |||
21 | 21 | ||
22 | int savagefb_sync(struct fb_info *info) | 22 | int savagefb_sync(struct fb_info *info) |
23 | { | 23 | { |
24 | struct savagefb_par *par = (struct savagefb_par *)info->par; | 24 | struct savagefb_par *par = info->par; |
25 | 25 | ||
26 | par->SavageWaitIdle(par); | 26 | par->SavageWaitIdle(par); |
27 | return 0; | 27 | return 0; |
@@ -29,7 +29,7 @@ int savagefb_sync(struct fb_info *info) | |||
29 | 29 | ||
30 | void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) | 30 | void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) |
31 | { | 31 | { |
32 | struct savagefb_par *par = (struct savagefb_par *)info->par; | 32 | struct savagefb_par *par = info->par; |
33 | int sx = region->sx, dx = region->dx; | 33 | int sx = region->sx, dx = region->dx; |
34 | int sy = region->sy, dy = region->dy; | 34 | int sy = region->sy, dy = region->dy; |
35 | int cmd; | 35 | int cmd; |
@@ -63,7 +63,7 @@ void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) | |||
63 | 63 | ||
64 | void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) | 64 | void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) |
65 | { | 65 | { |
66 | struct savagefb_par *par = (struct savagefb_par *)info->par; | 66 | struct savagefb_par *par = info->par; |
67 | int cmd, color; | 67 | int cmd, color; |
68 | 68 | ||
69 | if (!rect->width || !rect->height) | 69 | if (!rect->width || !rect->height) |
@@ -90,7 +90,7 @@ void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) | |||
90 | 90 | ||
91 | void savagefb_imageblit(struct fb_info *info, const struct fb_image *image) | 91 | void savagefb_imageblit(struct fb_info *info, const struct fb_image *image) |
92 | { | 92 | { |
93 | struct savagefb_par *par = (struct savagefb_par *)info->par; | 93 | struct savagefb_par *par = info->par; |
94 | int fg, bg, size, i, width; | 94 | int fg, bg, size, i, width; |
95 | int cmd; | 95 | int cmd; |
96 | u32 *src = (u32 *) image->data; | 96 | u32 *src = (u32 *) image->data; |