Commit 109d6720 authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Greg Kroah-Hartman

staging: unisys: Remove typedef and rename struct to lowercase

Remove typedef and rename struct to lowercase (ultra_segment_state) in unisys
Signed-off-by: default avatarVeronika Kabátová <veronicca114@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c71ea54
......@@ -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 {
......
......@@ -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 {
......
......@@ -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;
......
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