summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-10-31 09:57:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-03 15:59:01 -0800
commit6fb23e18944adaec20bd38caf5703271875cede5 (patch)
tree1109d40ae6957a417e6220adffc14e99d9154218
parent37951dabd899587afc31ddd508b9cdddc9c24524 (diff)
staging: unisys: refactor VISORCHIPSET_ADDRESSTYPE
Get rid of VISORCHIPSET_ADDRESSTYPE and replace it with enum visorchipset_addresstype. Fix CamelCase names: ADDRTYPE_localPhysical => ADDRTYPE_LOCALPHYSICAL ADDRTYPE_localTest => ADDRTYPE_LOCALTEST Update all references to changed names. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset.h10
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset_main.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset.h b/drivers/staging/unisys/visorchipset/visorchipset.h
index ef62f3a54184..6ca6580583b5 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset.h
+++ b/drivers/staging/unisys/visorchipset/visorchipset.h
@@ -40,18 +40,18 @@ struct visorchipset_state {
/* Remaining bits in this 32-bit word are unused. */
};
-typedef enum {
+enum visorchipset_addresstype {
/** address is guest physical, but outside of the physical memory
* region that is controlled by the running OS (this is the normal
* address type for Supervisor channels)
*/
- ADDRTYPE_localPhysical,
+ ADDRTYPE_LOCALPHYSICAL,
/** address is guest physical, and withIN the confines of the
* physical memory controlled by the running OS.
*/
- ADDRTYPE_localTest,
-} VISORCHIPSET_ADDRESSTYPE;
+ ADDRTYPE_LOCALTEST,
+};
typedef enum {
CRASH_dev,
@@ -61,7 +61,7 @@ typedef enum {
/** Attributes for a particular Supervisor channel.
*/
typedef struct {
- VISORCHIPSET_ADDRESSTYPE addrType;
+ enum visorchipset_addresstype addrType;
HOSTADDRESS channelAddr;
struct irq_info intr;
u64 nChannelBytes;
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c
index 392e046be359..70a54899fca6 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset_main.c
+++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c
@@ -1130,9 +1130,9 @@ bus_create(struct controlvm_message *inmsg)
POSTCODE_LINUX_3(BUS_CREATE_ENTRY_PC, busNo, POSTCODE_SEVERITY_INFO);
if (inmsg->hdr.flags.test_message == 1)
- pBusInfo->chanInfo.addrType = ADDRTYPE_localTest;
+ pBusInfo->chanInfo.addrType = ADDRTYPE_LOCALTEST;
else
- pBusInfo->chanInfo.addrType = ADDRTYPE_localPhysical;
+ pBusInfo->chanInfo.addrType = ADDRTYPE_LOCALPHYSICAL;
pBusInfo->flags.server = inmsg->hdr.flags.server;
pBusInfo->chanInfo.channelAddr = cmd->create_bus.channel_addr;
@@ -1280,9 +1280,9 @@ my_device_create(struct controlvm_message *inmsg)
POSTCODE_SEVERITY_INFO);
if (inmsg->hdr.flags.test_message == 1)
- pDevInfo->chanInfo.addrType = ADDRTYPE_localTest;
+ pDevInfo->chanInfo.addrType = ADDRTYPE_LOCALTEST;
else
- pDevInfo->chanInfo.addrType = ADDRTYPE_localPhysical;
+ pDevInfo->chanInfo.addrType = ADDRTYPE_LOCALPHYSICAL;
pDevInfo->chanInfo.channelAddr = cmd->create_device.channel_addr;
pDevInfo->chanInfo.nChannelBytes = cmd->create_device.channel_bytes;
pDevInfo->chanInfo.channelTypeGuid = cmd->create_device.data_type_uuid;