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

staging: unisys: refactor VISORCHIPSET_INTERNALPORT_INFO

Get rid of the typedef and use struct visorchipset_internalport_info and fix
CamelCase member names:

switchNo => switch_no
internalPortNo => internal_port_no
busNo => bus_no
devNo => dev_no
Reserved1 => reserved1
Reserved2 => reserved2
pendingMsgHdr => pending_msg_hdr
procObject => proc_object
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
parent 53414833
...@@ -200,18 +200,18 @@ struct visorchipset_externalport_info { ...@@ -200,18 +200,18 @@ struct visorchipset_externalport_info {
/** Attributes for a particular Supervisor internal port, which is how a /** Attributes for a particular Supervisor internal port, which is how a
* device connects to a particular switch. * device connects to a particular switch.
*/ */
typedef struct { struct visorchipset_internalport_info {
u32 switchNo; u32 switch_no;
u32 internalPortNo; u32 internal_port_no;
struct visorchipset_state state; struct visorchipset_state state;
u32 busNo; /* valid only when state.attached == 1 */ u32 bus_no; /* valid only when state.attached == 1 */
u32 devNo; /* valid only when state.attached == 1 */ u32 dev_no; /* valid only when state.attached == 1 */
u64 Reserved1; u64 reserved1;
u32 Reserved2; /* CONTROLVM_ID */ u32 reserved2; /* CONTROLVM_ID */
struct controlvm_message_header pendingMsgHdr; struct controlvm_message_header pending_msg_hdr;
MYPROCOBJECT *procObject; MYPROCOBJECT *proc_object;
} VISORCHIPSET_INTERNALPORT_INFO; };
/* These functions will be called from within visorchipset when certain /* These functions will be called from within visorchipset when certain
* events happen. (The implementation of these functions is outside of * events happen. (The implementation of these functions is outside of
......
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