staging: unisys: Remove typedef and rename struct to lowercase
authorVeronika Kabatova <veronicca114@gmail.com>
Tue, 7 Oct 2014 22:41:10 +0000 (00:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
Remove typedef and rename struct to lowercase (ultra_segment_state) in unisys

Signed-off-by: Veronika Kabátová <veronicca114@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/controlframework.h
drivers/staging/unisys/common-spar/include/channels/controlvmchannel.h
drivers/staging/unisys/visorchipset/visorchipset_main.c

index fd4726e754eae5edd9a47f2e43b4619f9f3428f8..bbcf5ac4f0b7a77f00f15c922626a095c7d9c3d0 100644 (file)
@@ -36,7 +36,7 @@
 
 /* Define Ki scale page to be traditional 4KB page */
 #define ULTRA_MEMORY_PAGE_Ki (ULTRA_MEMORY_PAGE_WORD * ULTRA_MEMORY_COUNT_Ki)
-typedef struct _ULTRA_SEGMENT_STATE  {
+struct ultra_segment_state {
        u16 Enabled:1;          /* Bit 0: May enter other states */
        u16 Active:1;           /* Bit 1: Assigned to active partition */
        u16 Alive:1;            /* Bit 2: Configure message sent to
@@ -53,14 +53,14 @@ typedef struct _ULTRA_SEGMENT_STATE  {
                                 * operating */
        /* Note: don't use high bit unless we need to switch to ushort
         * which is non-compliant */
-} ULTRA_SEGMENT_STATE;
-static const ULTRA_SEGMENT_STATE SegmentStateRunning = {
+};
+static const struct ultra_segment_state SegmentStateRunning = {
        1, 1, 1, 0, 1, 1, 1, 1
 };
-static const ULTRA_SEGMENT_STATE SegmentStatePaused = {
+static const struct ultra_segment_state SegmentStatePaused = {
        1, 1, 1, 0, 1, 1, 1, 0
 };
-static const ULTRA_SEGMENT_STATE SegmentStateStandby = {
+static const struct ultra_segment_state SegmentStateStandby = {
        1, 1, 0, 0, 1, 1, 1, 0
 };
 typedef union {
index cbe152f8ea27973acd6cfdeb1ae7caff6bd643d9..cfd99997cfee613cb469dbcc6bded6c78741a114 100644 (file)
@@ -390,13 +390,13 @@ typedef struct _CONTROLVM_MESSAGE_PACKET  {
                } reconfigureDevice;    /* for CONTROLVM_DEVICE_RECONFIGURE */
                struct  {
                        u32 busNo;
-                       ULTRA_SEGMENT_STATE state;
+                       struct ultra_segment_state state;
                        u8 reserved[2]; /* Natural alignment purposes */
                } busChangeState;       /* for CONTROLVM_BUS_CHANGESTATE */
                struct  {
                        u32 busNo;
                        u32 devNo;
-                       ULTRA_SEGMENT_STATE state;
+                       struct ultra_segment_state state;
                        struct  {
                                u32 physicalDevice:1;   /* =1 if message is for
                                                         * a physical device */
@@ -407,7 +407,7 @@ typedef struct _CONTROLVM_MESSAGE_PACKET  {
                struct  {
                        u32 busNo;
                        u32 devNo;
-                       ULTRA_SEGMENT_STATE state;
+                       struct ultra_segment_state state;
                        u8 reserved[6]; /* Natural alignment purposes */
                } deviceChangeStateEvent; /* for CONTROLVM_DEVICE_CHANGESTATE_EVENT */
                struct  {
index ce4e731a2e4ac71188cf2f4015f857993e5aeeba..320124a240ace11b0e02953aad9a20ec184c7689 100644 (file)
@@ -346,9 +346,9 @@ static void controlvm_respond(CONTROLVM_MESSAGE_HEADER *msgHdr, int response);
 static void controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr,
                                           int response,
                                           ULTRA_CHIPSET_FEATURE features);
-static void controlvm_respond_physdev_changestate(CONTROLVM_MESSAGE_HEADER *
-                                                 msgHdr, int response,
-                                                 ULTRA_SEGMENT_STATE state);
+static void controlvm_respond_physdev_changestate(
+                       CONTROLVM_MESSAGE_HEADER *msgHdr, int response,
+                       struct ultra_segment_state state);
 
 static ssize_t toolaction_show(struct device *dev,
                               struct device_attribute *attr,
@@ -741,7 +741,8 @@ controlvm_respond_chipset_init(CONTROLVM_MESSAGE_HEADER *msgHdr, int response,
 
 static void
 controlvm_respond_physdev_changestate(CONTROLVM_MESSAGE_HEADER *msgHdr,
-                                     int response, ULTRA_SEGMENT_STATE state)
+                                     int response, struct ultra_segment_state
+                                     state)
 {
        CONTROLVM_MESSAGE outmsg;
 
@@ -857,7 +858,7 @@ bus_responder(CONTROLVM_ID cmdId, ulong busNo, int response)
 static void
 device_changestate_responder(CONTROLVM_ID cmdId,
                             ulong busNo, ulong devNo, int response,
-                            ULTRA_SEGMENT_STATE responseState)
+                            struct ultra_segment_state responseState)
 {
        VISORCHIPSET_DEVICE_INFO *p = NULL;
        CONTROLVM_MESSAGE outmsg;
@@ -991,7 +992,7 @@ bus_epilog(u32 busNo,
 }
 
 static void
-device_epilog(u32 busNo, u32 devNo, ULTRA_SEGMENT_STATE state, u32 cmd,
+device_epilog(u32 busNo, u32 devNo, struct ultra_segment_state state, u32 cmd,
              CONTROLVM_MESSAGE_HEADER *msgHdr, int response,
              BOOL needResponse, BOOL for_visorbus)
 {
@@ -1303,7 +1304,7 @@ my_device_changestate(CONTROLVM_MESSAGE *inmsg)
        CONTROLVM_MESSAGE_PACKET *cmd = &inmsg->cmd;
        ulong busNo = cmd->deviceChangeState.busNo;
        ulong devNo = cmd->deviceChangeState.devNo;
-       ULTRA_SEGMENT_STATE state = cmd->deviceChangeState.state;
+       struct ultra_segment_state state = cmd->deviceChangeState.state;
        VISORCHIPSET_DEVICE_INFO *pDevInfo = NULL;
        int rc = CONTROLVM_RESP_SUCCESS;