staging: unisys: refactor GUEST_DEVICES
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:30:33 +0000 (14:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:12 +0000 (10:33 +0800)
Remove the typedef from GUEST_DEVICES and switch to struct
guest_devices. Fix CamelCase names and update all references to renamed
members.

VideoChannel => video_channel
KeyboardChannel => keyboard_channel
NetworkChannel => network_channel
StorageChannel => storage_channel
ConsoleChannel => console_channel
PartitionIndex => partition_index
Pad => pad

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/controlvmchannel.h

index 5aff65dd9d040a7edb53af1b2fe74c1e437cf9b1..363967a55267b06de35303ad1d8e170b9ec3fb34 100644 (file)
@@ -350,15 +350,15 @@ struct device_map {
        u64 reserved2;          /* Align structure on 32-byte boundary */
 };
 
-typedef struct _GUEST_DEVICES  {
-       struct device_map VideoChannel;
-       struct device_map KeyboardChannel;
-       struct device_map NetworkChannel;
-       struct device_map StorageChannel;
-       struct device_map ConsoleChannel;
-       u32 PartitionIndex;
-       u32 Pad;
-} GUEST_DEVICES;
+struct guest_devices  {
+       struct device_map video_channel;
+       struct device_map keyboard_channel;
+       struct device_map network_channel;
+       struct device_map storage_channel;
+       struct device_map console_channel;
+       u32 partition_index;
+       u32 pad;
+};
 
 typedef struct _ULTRA_CONTROLVM_CHANNEL_PROTOCOL  {
         struct channel_header Header;
@@ -394,7 +394,7 @@ typedef struct _ULTRA_CONTROLVM_CHANNEL_PROTOCOL  {
         GUEST_PHYSICAL_ADDRESS gpPhysicalSmbiosTable;  /* guest phys addr of
                                                         * SMBIOS table  */
         /* ULTRA_MAX_GUESTS_PER_SERVICE */
-        GUEST_DEVICES gpObsoleteGuestDevices[16];
+        struct guest_devices gpObsoleteGuestDevices[16];
 
         /* guest physical address of EFI firmware image base  */
         GUEST_PHYSICAL_ADDRESS VirtualGuestFirmwareImageBase;