Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: unisys: Remove typedef and rename enum to lowercase

Remove typedef and rename enum to lowercase (control_vm_id)

Signed-off-by: Veronika Kabátová <veronicca114@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Veronika Kabatova and committed by
Greg Kroah-Hartman
d8ad8b0c 35b042a5

+11 -11
+3 -3
drivers/staging/unisys/common-spar/include/channels/controlvmchannel.h
··· 88 88 * - issued on the EventQueue queue (q #2) in the ControlVm channel 89 89 * - responded to on the EventAckQueue queue (q #3) in the ControlVm channel 90 90 */ 91 - typedef enum { 91 + enum control_vm_id { 92 92 CONTROLVM_INVALID = 0, 93 93 /* SWITCH commands required Parameter: SwitchNumber */ 94 94 /* BUS commands required Parameter: BusNumber */ ··· 117 117 CONTROLVM_CHIPSET_READY = 0x304, /* CP --> SP */ 118 118 CONTROLVM_CHIPSET_SELFTEST = 0x305, /* CP --> SP */ 119 119 120 - } CONTROLVM_ID; 120 + }; 121 121 122 122 struct irq_info { 123 123 /**< specifies interrupt info. It is used to send interrupts ··· 239 239 * looking at the flags.response field. 240 240 */ 241 241 typedef struct _CONTROLVM_MESSAGE_HEADER { 242 - u32 Id; /* See CONTROLVM_ID. */ 242 + u32 Id; /* See control_vm_id. */ 243 243 /* For requests, indicates the message type. */ 244 244 /* For responses, indicates the type of message we are responding to. */ 245 245
+1 -1
drivers/staging/unisys/include/uisutils.h
··· 155 155 #endif 156 156 int uislib_get_owned_pdest(struct uisscsi_dest *pdest); 157 157 158 - int uislib_send_event(CONTROLVM_ID id, CONTROLVM_MESSAGE_PACKET *event); 158 + int uislib_send_event(enum control_vm_id id, CONTROLVM_MESSAGE_PACKET *event); 159 159 160 160 /* structure used by vhba & vnic to keep track of queue & thread info */ 161 161 struct chaninfo {
+4 -4
drivers/staging/unisys/visorchipset/visorchipset.h
··· 82 82 uuid_le devInstGuid; 83 83 VISORCHIPSET_STATE state; 84 84 VISORCHIPSET_CHANNEL_INFO chanInfo; 85 - u32 Reserved1; /* CONTROLVM_ID */ 85 + u32 Reserved1; /* control_vm_id */ 86 86 u64 Reserved2; 87 87 u32 switchNo; /* when devState.attached==1 */ 88 88 u32 internalPortNo; /* when devState.attached==1 */ ··· 169 169 u8 *authService3; 170 170 u8 *securityContext; 171 171 u64 Reserved; 172 - u32 Reserved2; /* CONTROLVM_ID */ 172 + u32 Reserved2; /* control_vm_id */ 173 173 struct device dev; 174 174 BOOL dev_exists; 175 175 CONTROLVM_MESSAGE_HEADER pendingMsgHdr; ··· 192 192 u8 *ipGateway; 193 193 u8 *ipDNS; 194 194 u64 Reserved1; 195 - u32 Reserved2; /* CONTROLVM_ID */ 195 + u32 Reserved2; /* control_vm_id */ 196 196 struct device dev; 197 197 BOOL dev_exists; 198 198 CONTROLVM_MESSAGE_HEADER pendingMsgHdr; ··· 209 209 u32 busNo; /* valid only when state.attached == 1 */ 210 210 u32 devNo; /* valid only when state.attached == 1 */ 211 211 u64 Reserved1; 212 - u32 Reserved2; /* CONTROLVM_ID */ 212 + u32 Reserved2; /* control_vm_id */ 213 213 CONTROLVM_MESSAGE_HEADER pendingMsgHdr; 214 214 MYPROCOBJECT *procObject; 215 215
+3 -3
drivers/staging/unisys/visorchipset/visorchipset_main.c
··· 817 817 EXPORT_SYMBOL_GPL(visorchipset_save_message); 818 818 819 819 static void 820 - bus_responder(CONTROLVM_ID cmdId, ulong busNo, int response) 820 + bus_responder(enum control_vm_id cmdId, ulong busNo, int response) 821 821 { 822 822 VISORCHIPSET_BUS_INFO *p = NULL; 823 823 BOOL need_clear = FALSE; ··· 856 856 } 857 857 858 858 static void 859 - device_changestate_responder(CONTROLVM_ID cmdId, 859 + device_changestate_responder(enum control_vm_id cmdId, 860 860 ulong busNo, ulong devNo, int response, 861 861 struct ultra_segment_state responseState) 862 862 { ··· 893 893 } 894 894 895 895 static void 896 - device_responder(CONTROLVM_ID cmdId, ulong busNo, ulong devNo, int response) 896 + device_responder(enum control_vm_id cmdId, ulong busNo, ulong devNo, int response) 897 897 { 898 898 VISORCHIPSET_DEVICE_INFO *p = NULL; 899 899 BOOL need_clear = FALSE;