dri/common: use designated initializers for OptConfElems
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
committed by
Emil Velikov
parent
107b9c70d0
commit
b359957469
@@ -776,7 +776,10 @@ enum OptConfElem {
|
||||
OC_APPLICATION = 0, OC_DEVICE, OC_DRICONF, OC_OPTION, OC_COUNT
|
||||
};
|
||||
static const XML_Char *OptConfElems[] = {
|
||||
"application", "device", "driconf", "option"
|
||||
[OC_APPLICATION] = "application",
|
||||
[OC_DEVICE] = "device",
|
||||
[OC_DRICONF] = "driconf",
|
||||
[OC_OPTION] = "option",
|
||||
};
|
||||
|
||||
/** \brief Parse attributes of a device element. */
|
||||
|
||||
Reference in New Issue
Block a user