summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorAaro Koskinen2011-10-11 20:47:29 +0200
committerGreg Kroah-Hartman2011-10-12 17:51:47 +0200
commit7d2ab0c62dd3eb283853340e8aab095bdb6f6ac7 (patch)
tree5863c4aaec57bbc9a4a42c6d04d2e17ba86f94e6 /drivers/staging/xgifb
parentstaging: xgifb: eliminate filter_tb global variable (diff)
downloadkernel-qcow2-linux-7d2ab0c62dd3eb283853340e8aab095bdb6f6ac7.tar.gz
kernel-qcow2-linux-7d2ab0c62dd3eb283853340e8aab095bdb6f6ac7.tar.xz
kernel-qcow2-linux-7d2ab0c62dd3eb283853340e8aab095bdb6f6ac7.zip
staging: xgifb: make XGIbios_mode const
Comments are wrong, the table is read-only and can be made const. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/XGI_main.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h
index 78f4c934b24f..6c1f5e0a1bfc 100644
--- a/drivers/staging/xgifb/XGI_main.h
+++ b/drivers/staging/xgifb/XGI_main.h
@@ -150,8 +150,7 @@ static struct vb_device_info XGI_Pr;
#define MD_XGI315 2
/* mode table */
-/* NOT const - will be patched for 1280x960 mode number chaos reasons */
-static struct _XGIbios_mode {
+static const struct _XGIbios_mode {
char name[15];
u8 mode_no;
u16 vesa_mode_no_1; /* "XGI defined" VESA mode number */
@@ -261,7 +260,7 @@ static struct _XGIbios_mode {
{"1280x768x32", 0x25, 0x0000, 0x0000, 1280, 768, 32, 1, 160, 48,
MD_XGI315},
{"1280x960x8", 0x7C, 0x0000, 0x0000, 1280, 960, 8, 1, 160, 60,
- MD_XGI300|MD_XGI315}, /* TW: Modenumbers being patched */
+ MD_XGI300|MD_XGI315},
{"1280x960x16", 0x7D, 0x0000, 0x0000, 1280, 960, 16, 1, 160, 60,
MD_XGI300|MD_XGI315},
{"1280x960x24", 0x7E, 0x0000, 0x0000, 1280, 960, 32, 1, 160, 60,