(!1788) xfree86: modsetting: use explicit field initializers for XF86ModuleData
Even though the order of these fields shouldn't change anytime soon, it's still better programming style to name'em explicitly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									43b20e2369
								
							
						
					
					
						commit
						74ba2b1af5
					
				|  | @ -157,21 +157,23 @@ int ms_entity_index = -1; | ||||||
| static MODULESETUPPROTO(Setup); | static MODULESETUPPROTO(Setup); | ||||||
| 
 | 
 | ||||||
| static XF86ModuleVersionInfo VersRec = { | static XF86ModuleVersionInfo VersRec = { | ||||||
|     "modesetting", |     .modname      = "modesetting", | ||||||
|     MODULEVENDORSTRING, |     .vendor       = MODULEVENDORSTRING, | ||||||
|     MODINFOSTRING1, |     ._modinfo1_   = MODINFOSTRING1, | ||||||
|     MODINFOSTRING2, |     ._modinfo1_   = MODINFOSTRING2, | ||||||
|     XORG_VERSION_CURRENT, |     .xf86version  = XORG_VERSION_CURRENT, | ||||||
|     XORG_VERSION_MAJOR, |     .majorversion = XORG_VERSION_MAJOR, | ||||||
|     XORG_VERSION_MINOR, |     .minorversion = XORG_VERSION_MINOR, | ||||||
|     XORG_VERSION_PATCH, |     .patchlevel   = XORG_VERSION_PATCH, | ||||||
|     ABI_CLASS_VIDEODRV, |     .abiclass     = ABI_CLASS_VIDEODRV, | ||||||
|     ABI_VIDEODRV_VERSION, |     .abiversion   = ABI_VIDEODRV_VERSION, | ||||||
|     MOD_CLASS_VIDEODRV, |     .moduleclass  = MOD_CLASS_VIDEODRV, | ||||||
|     {0, 0, 0, 0} |  | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| _X_EXPORT XF86ModuleData modesettingModuleData = { &VersRec, Setup, NULL }; | _X_EXPORT XF86ModuleData modesettingModuleData = { | ||||||
|  |     .vers = &VersRec, | ||||||
|  |     .setup = Setup | ||||||
|  | }; | ||||||
| 
 | 
 | ||||||
| static void * | static void * | ||||||
| Setup(void *module, void *opts, int *errmaj, int *errmin) | Setup(void *module, void *opts, int *errmaj, int *errmin) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue