Commit b9b141e8 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: refactor ULTRA_CHIPSET_FEATURE enum

Get rid of the typedef and use enum ultra_chipset_feature instead, and
update all references to the enumeration.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 75185f57
...@@ -158,11 +158,11 @@ struct efi_spar_indication { ...@@ -158,11 +158,11 @@ struct efi_spar_indication {
/* remaining bits are available */ /* remaining bits are available */
}; };
typedef enum { enum ultra_chipset_feature {
ULTRA_CHIPSET_FEATURE_REPLY = 0x00000001, ULTRA_CHIPSET_FEATURE_REPLY = 0x00000001,
ULTRA_CHIPSET_FEATURE_PARA_HOTPLUG = 0x00000002, ULTRA_CHIPSET_FEATURE_PARA_HOTPLUG = 0x00000002,
ULTRA_CHIPSET_FEATURE_PCIVBUS = 0x00000004 ULTRA_CHIPSET_FEATURE_PCIVBUS = 0x00000004
} ULTRA_CHIPSET_FEATURE; };
/** This is the common structure that is at the beginning of every /** This is the common structure that is at the beginning of every
* ControlVm message (both commands and responses) in any ControlVm * ControlVm message (both commands and responses) in any ControlVm
...@@ -346,7 +346,7 @@ typedef struct _CONTROLVM_MESSAGE_PACKET { ...@@ -346,7 +346,7 @@ typedef struct _CONTROLVM_MESSAGE_PACKET {
u32 switchCount; /*< indicates the max number of u32 switchCount; /*< indicates the max number of
* switches (applicable for service * switches (applicable for service
* partition only) */ * partition only) */
ULTRA_CHIPSET_FEATURE features; enum ultra_chipset_feature features;
u32 platformNumber; /* Platform Number */ u32 platformNumber; /* Platform Number */
} initChipset; /* for CONTROLVM_CHIPSET_INIT */ } initChipset; /* for CONTROLVM_CHIPSET_INIT */
struct { struct {
......
...@@ -347,7 +347,7 @@ static struct platform_device Visorchipset_platform_device = { ...@@ -347,7 +347,7 @@ static struct platform_device Visorchipset_platform_device = {
static void controlvm_respond(CONTROLVM_MESSAGE_HEADER *msgHdr, int response); static void controlvm_respond(CONTROLVM_MESSAGE_HEADER *msgHdr, int response);
static void controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr, static void controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr,
int response, int response,
ULTRA_CHIPSET_FEATURE features); enum ultra_chipset_feature features);
static void controlvm_respond_physdev_changestate(CONTROLVM_MESSAGE_HEADER * static void controlvm_respond_physdev_changestate(CONTROLVM_MESSAGE_HEADER *
msgHdr, int response, struct spar_segment_state state); msgHdr, int response, struct spar_segment_state state);
...@@ -655,7 +655,7 @@ static void ...@@ -655,7 +655,7 @@ static void
chipset_init(CONTROLVM_MESSAGE *inmsg) chipset_init(CONTROLVM_MESSAGE *inmsg)
{ {
static int chipset_inited; static int chipset_inited;
ULTRA_CHIPSET_FEATURE features = 0; enum ultra_chipset_feature features = 0;
int rc = CONTROLVM_RESP_SUCCESS; int rc = CONTROLVM_RESP_SUCCESS;
POSTCODE_LINUX_2(CHIPSET_INIT_ENTRY_PC, POSTCODE_SEVERITY_INFO); POSTCODE_LINUX_2(CHIPSET_INIT_ENTRY_PC, POSTCODE_SEVERITY_INFO);
...@@ -727,7 +727,7 @@ controlvm_respond(CONTROLVM_MESSAGE_HEADER *msgHdr, int response) ...@@ -727,7 +727,7 @@ controlvm_respond(CONTROLVM_MESSAGE_HEADER *msgHdr, int response)
static void static void
controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr, int response, controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr, int response,
ULTRA_CHIPSET_FEATURE features) enum ultra_chipset_feature features)
{ {
CONTROLVM_MESSAGE outmsg; CONTROLVM_MESSAGE outmsg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment