aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via/global.c
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2009-09-22 19:47:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 10:39:53 -0400
commit5016af53ebbd1450c2656c94dfbd1dad15c19f60 (patch)
tree96c6ec0f311d0ce8ff5b0b2e963814dd12632e71 /drivers/video/via/global.c
parentafbd3c12aca5a29f1627c0c68e6bc77f32459935 (diff)
viafb: cleanup viafb_cursor
Clean the hardware cursor handling up. The most notable change is that it no longer buffers the values in viacursor but uses the ones in cursor instead as they are guaranteed to be always valid. Furthermore it uses local instead global variables where possible, moves the cursor variable in shared as only one hardware cursor is supported and returns an error if memory allocation fails. Last but not least it fixes a too small buffer (as u32 has only 4 and not 32 bytes) but this did not produce any known problems. This is mostly a code cleanup, no negative runtime changes are expected. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Scott Fang <ScottFang@viatech.com.cn> Cc: Joseph Chan <JosephChan@via.com.tw> Cc: Harald Welte <laforge@gnumonks.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/via/global.c')
-rw-r--r--drivers/video/via/global.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/via/global.c b/drivers/video/via/global.c
index 1096fd5de2bf..33e7c45b2b78 100644
--- a/drivers/video/via/global.c
+++ b/drivers/video/via/global.c
@@ -51,7 +51,6 @@ unsigned int viafb_second_yres = 480;
51unsigned int viafb_second_virtual_xres; 51unsigned int viafb_second_virtual_xres;
52unsigned int viafb_second_virtual_yres; 52unsigned int viafb_second_virtual_yres;
53int viafb_lcd_panel_id = LCD_PANEL_ID_MAXIMUM + 1; 53int viafb_lcd_panel_id = LCD_PANEL_ID_MAXIMUM + 1;
54struct fb_cursor viacursor;
55struct fb_info *viafbinfo; 54struct fb_info *viafbinfo;
56struct fb_info *viafbinfo1; 55struct fb_info *viafbinfo1;
57struct viafb_par *viaparinfo; 56struct viafb_par *viaparinfo;