[MPlayer-cvslog] r37711 - in trunk/vidix: cyberblade_vid.c drivers.c ivtv_vid.c mach64_vid.c mga_vid.c nvidia_vid.c pm2_vid.c pm3_vid.c radeon_vid.c s3_vid.c sh_veu_vid.c sis_vid.c unichrome_vid.c

reimar subversion at mplayerhq.hu
Sat Feb 13 18:52:48 CET 2016


Author: reimar
Date: Sat Feb 13 18:52:48 2016
New Revision: 37711

Log:
VIDIX: make all VDXDriver structs const.

Modified:
   trunk/vidix/cyberblade_vid.c
   trunk/vidix/drivers.c
   trunk/vidix/ivtv_vid.c
   trunk/vidix/mach64_vid.c
   trunk/vidix/mga_vid.c
   trunk/vidix/nvidia_vid.c
   trunk/vidix/pm2_vid.c
   trunk/vidix/pm3_vid.c
   trunk/vidix/radeon_vid.c
   trunk/vidix/s3_vid.c
   trunk/vidix/sh_veu_vid.c
   trunk/vidix/sis_vid.c
   trunk/vidix/unichrome_vid.c

Modified: trunk/vidix/cyberblade_vid.c
==============================================================================
--- trunk/vidix/cyberblade_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/cyberblade_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -589,7 +589,7 @@ static int cyberblade_frame_sel(unsigned
 	return 0;
 }
 
-VDXDriver cyberblade_drv = {
+const VDXDriver cyberblade_drv = {
   "cyberblade",
   NULL,
   .probe = cyberblade_probe,

Modified: trunk/vidix/drivers.c
==============================================================================
--- trunk/vidix/drivers.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/drivers.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -32,20 +32,20 @@
 #include "mp_msg.h"
 #include "config.h"
 
-extern VDXDriver cyberblade_drv;
-extern VDXDriver ivtv_drv;
-extern VDXDriver mach64_drv;
-extern VDXDriver mga_drv;
-extern VDXDriver mga_crtc2_drv;
-extern VDXDriver nvidia_drv;
-extern VDXDriver pm2_drv;
-extern VDXDriver pm3_drv;
-extern VDXDriver radeon_drv;
-extern VDXDriver rage128_drv;
-extern VDXDriver s3_drv;
-extern VDXDriver sh_veu_drv;
-extern VDXDriver sis_drv;
-extern VDXDriver unichrome_drv;
+extern const VDXDriver cyberblade_drv;
+extern const VDXDriver ivtv_drv;
+extern const VDXDriver mach64_drv;
+extern const VDXDriver mga_drv;
+extern const VDXDriver mga_crtc2_drv;
+extern const VDXDriver nvidia_drv;
+extern const VDXDriver pm2_drv;
+extern const VDXDriver pm3_drv;
+extern const VDXDriver radeon_drv;
+extern const VDXDriver rage128_drv;
+extern const VDXDriver s3_drv;
+extern const VDXDriver sh_veu_drv;
+extern const VDXDriver sis_drv;
+extern const VDXDriver unichrome_drv;
 
 static const VDXDriver * const all_drivers[] = {
 #ifdef CONFIG_VIDIX_DRV_CYBERBLADE

Modified: trunk/vidix/ivtv_vid.c
==============================================================================
--- trunk/vidix/ivtv_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/ivtv_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -547,7 +547,7 @@ int ivtv_frame_sel(unsigned int frame)
 	return 0;
 }
 
-VDXDriver ivtv_drv = {
+const VDXDriver ivtv_drv = {
 	"ivtv",
 	NULL,
 	.probe = ivtv_probe,

Modified: trunk/vidix/mach64_vid.c
==============================================================================
--- trunk/vidix/mach64_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/mach64_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -1055,7 +1055,7 @@ static int mach64_set_gkeys(const vidix_
     return 0;
 }
 
-VDXDriver mach64_drv = {
+const VDXDriver mach64_drv = {
   "mach64",
   NULL,
   .probe = mach64_probe,

Modified: trunk/vidix/mga_vid.c
==============================================================================
--- trunk/vidix/mga_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/mga_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -1377,10 +1377,10 @@ static int mga_get_eq( vidix_video_eq_t
 }
 
 #ifndef CRTC2
-VDXDriver mga_drv = {
+const VDXDriver mga_drv = {
   "mga",
 #else
-VDXDriver mga_crtc2_drv = {
+const VDXDriver mga_crtc2_drv = {
   "mga_crtc2",
 #endif
   NULL,

Modified: trunk/vidix/nvidia_vid.c
==============================================================================
--- trunk/vidix/nvidia_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/nvidia_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -1107,7 +1107,7 @@ static int nv_get_eq(vidix_video_eq_t *e
   return 0;
 }
 
-VDXDriver nvidia_drv = {
+const VDXDriver nvidia_drv = {
   "nvidia",
   NULL,
   .probe = nv_probe,

Modified: trunk/vidix/pm2_vid.c
==============================================================================
--- trunk/vidix/pm2_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/pm2_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -346,7 +346,7 @@ static int pm2_frame_select(unsigned int
     return 0;
 }
 
-VDXDriver pm2_drv = {
+const VDXDriver pm2_drv = {
   "pm2",
   NULL,
   .probe = pm2_probe,

Modified: trunk/vidix/pm3_vid.c
==============================================================================
--- trunk/vidix/pm3_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/pm3_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -367,7 +367,7 @@ static int pm3_frame_select(unsigned int
     return 0;
 }
 
-VDXDriver pm3_drv = {
+const VDXDriver pm3_drv = {
   "pm3",
   NULL,
   .probe = pm3_probe,

Modified: trunk/vidix/radeon_vid.c
==============================================================================
--- trunk/vidix/radeon_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/radeon_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -3453,10 +3453,10 @@ static int radeon_set_gkey(const vidix_g
 }
 
 #ifdef RAGE128
-VDXDriver rage128_drv = {
+const VDXDriver rage128_drv = {
   "rage128",
 #else
-VDXDriver radeon_drv = {
+const VDXDriver radeon_drv = {
   "radeon",
 #endif
   NULL,

Modified: trunk/vidix/s3_vid.c
==============================================================================
--- trunk/vidix/s3_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/s3_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -906,7 +906,7 @@ static int s3_frame_sel (unsigned int fr
   return 0;
 }
 
-VDXDriver s3_drv = {
+const VDXDriver s3_drv = {
   "s3",
   NULL,
   .probe = s3_probe,

Modified: trunk/vidix/sh_veu_vid.c
==============================================================================
--- trunk/vidix/sh_veu_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/sh_veu_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -621,7 +621,7 @@ static int sh_veu_frame_sel(unsigned int
     return 0;
 }
 
-VDXDriver sh_veu_drv = {
+const VDXDriver sh_veu_drv = {
     "sh_veu",
     NULL,
     .probe = sh_veu_probe,

Modified: trunk/vidix/sis_vid.c
==============================================================================
--- trunk/vidix/sis_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/sis_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -1492,7 +1492,7 @@ static void set_hue(uint8_t hue)
     setvideoreg(Index_VI_Hue, (hue & 0x08) ? (hue ^ 0x07) : hue);
 }
 
-VDXDriver sis_drv = {
+const VDXDriver sis_drv = {
   "sis",
   NULL,
 

Modified: trunk/vidix/unichrome_vid.c
==============================================================================
--- trunk/vidix/unichrome_vid.c	Sat Feb 13 18:50:08 2016	(r37710)
+++ trunk/vidix/unichrome_vid.c	Sat Feb 13 18:52:48 2016	(r37711)
@@ -957,7 +957,7 @@ unichrome_frame_select (unsigned int fra
   return 0;
 }
 
-VDXDriver unichrome_drv = {
+const VDXDriver unichrome_drv = {
   "unichrome",
   NULL,
   .probe = unichrome_probe,


More information about the MPlayer-cvslog mailing list