Rename duplicate CONFIG_VALUE_MAX

Leave a static assert to ensure they're in sync when relevant in gamemode-gpu
This commit is contained in:
Marc Di Luzio
2019-06-01 11:12:10 +01:00
parent c5c966ad54
commit 702407595a
3 changed files with 9 additions and 7 deletions

View File

@ -30,7 +30,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#define CONFIG_VALUE_MAX 256
#define GPU_VALUE_MAX 256
/* Enums for GPU vendors */
enum GPUVendor {
@ -52,7 +52,7 @@ struct GameModeGPUInfo {
long nv_mem; /* Nvidia mem clock */
long nv_powermizer_mode; /* NV Powermizer Mode */
char amd_performance_level[CONFIG_VALUE_MAX]; /* The AMD performance level set to */
char amd_performance_level[GPU_VALUE_MAX]; /* The AMD performance level set to */
};
/* Get the vendor for a device */