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

staging: unisys: clean up enums in uisqueue.h

Get rid of typedefs in enums SWITCH_TYPE and IOPART_MSG_TYPE, and use the enum
names directly instead.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f114040e
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "controlvmcompletionstatus.h" #include "controlvmcompletionstatus.h"
struct uisqueue_info { struct uisqueue_info {
CHANNEL_HEADER __iomem *chan; CHANNEL_HEADER __iomem *chan;
/* channel containing queues in which scsi commands & /* channel containing queues in which scsi commands &
* responses are queued * responses are queued
...@@ -149,10 +148,10 @@ struct device_info { ...@@ -149,10 +148,10 @@ struct device_info {
unsigned long long last_on_list_cnt; unsigned long long last_on_list_cnt;
}; };
typedef enum { enum switch_type {
RECOVERY_LAN = 1, RECOVERY_LAN = 1,
IB_LAN = 2 IB_LAN = 2
} SWITCH_TYPE; };
struct bus_info { struct bus_info {
u32 busNo, deviceCount; u32 busNo, deviceCount;
...@@ -199,7 +198,7 @@ struct network_policy { ...@@ -199,7 +198,7 @@ struct network_policy {
*/ */
typedef enum { enum iopart_msg_type {
IOPART_ADD_VNIC, IOPART_ADD_VNIC,
IOPART_DEL_VNIC, IOPART_DEL_VNIC,
IOPART_DEL_ALL_VNICS, IOPART_DEL_ALL_VNICS,
...@@ -219,7 +218,7 @@ typedef enum { ...@@ -219,7 +218,7 @@ typedef enum {
IOPART_RESUME_VDISK, IOPART_RESUME_VDISK,
IOPART_ADD_DEVICE, /* add generic device */ IOPART_ADD_DEVICE, /* add generic device */
IOPART_DEL_DEVICE, /* del generic device */ IOPART_DEL_DEVICE, /* del generic device */
} IOPART_MSG_TYPE; };
struct add_virt_iopart { struct add_virt_iopart {
void *chanptr; /* pointer to data channel */ void *chanptr; /* pointer to data channel */
...@@ -297,8 +296,7 @@ struct del_switch_iopart { /* destroy switch */ ...@@ -297,8 +296,7 @@ struct del_switch_iopart { /* destroy switch */
}; };
struct io_msgs { struct io_msgs {
enum iopart_msg_type msgtype;
IOPART_MSG_TYPE msgtype;
/* additional params needed by some messages */ /* additional params needed by some messages */
union { union {
...@@ -394,7 +392,6 @@ struct init_chipset_guestpart { ...@@ -394,7 +392,6 @@ struct init_chipset_guestpart {
}; };
struct guest_msgs { struct guest_msgs {
GUESTPART_MSG_TYPE msgtype; GUESTPART_MSG_TYPE msgtype;
/* additional params needed by messages */ /* additional params needed by messages */
......
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