summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-10-31 09:57:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-03 15:59:01 -0800
commit37951dabd899587afc31ddd508b9cdddc9c24524 (patch)
treef256f061a78fdfd7943666d975283799c0fd1735
parent7cbe010a5ea728d7c4440b11a1a3997faca0e46d (diff)
staging: unisys: get rid of VISORCHIPSET_STATE typedef
Remove the typedef for VISORCHIPSET_STATE and replace it with enum visorchipset_state. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/drivers/staging/unisys/visorchipset/visorchipset.h
index feae36885376..ef62f3a54184 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset.h
+++ b/drivers/staging/unisys/visorchipset/visorchipset.h
@@ -31,14 +31,14 @@
/** Describes the state from the perspective of which controlvm messages have
* been received for a bus or device.
*/
-typedef struct {
+struct visorchipset_state {
u32 created:1;
u32 attached:1;
u32 configured:1;
u32 running:1;
/* Add new fields above. */
/* Remaining bits in this 32-bit word are unused. */
-} VISORCHIPSET_STATE;
+};
typedef enum {
/** address is guest physical, but outside of the physical memory
@@ -80,7 +80,7 @@ typedef struct {
u32 busNo;
u32 devNo;
uuid_le devInstGuid;
- VISORCHIPSET_STATE state;
+ struct visorchipset_state state;
VISORCHIPSET_CHANNEL_INFO chanInfo;
u32 Reserved1; /* control_vm_id */
u64 Reserved2;
@@ -125,7 +125,7 @@ static inline void delbusdevices(struct list_head *list, u32 busNo)
typedef struct {
struct list_head entry;
u32 busNo;
- VISORCHIPSET_STATE state;
+ struct visorchipset_state state;
VISORCHIPSET_CHANNEL_INFO chanInfo;
uuid_le partitionGuid;
u64 partitionHandle;
@@ -162,7 +162,7 @@ findbus(struct list_head *list, u32 busNo)
*/
typedef struct {
u32 switchNo;
- VISORCHIPSET_STATE state;
+ struct visorchipset_state state;
uuid_le switchTypeGuid;
u8 *authService1;
u8 *authService2;
@@ -182,7 +182,7 @@ typedef struct {
typedef struct {
u32 switchNo;
u32 externalPortNo;
- VISORCHIPSET_STATE state;
+ struct visorchipset_state state;
uuid_le networkZoneGuid;
int pdPort;
u8 *ip;
@@ -205,7 +205,7 @@ typedef struct {
typedef struct {
u32 switchNo;
u32 internalPortNo;
- VISORCHIPSET_STATE state;
+ struct visorchipset_state state;
u32 busNo; /* valid only when state.attached == 1 */
u32 devNo; /* valid only when state.attached == 1 */
u64 Reserved1;