staging: unisys: refactor VISORCHIPSET_ADDRESSTYPE
[firefly-linux-kernel-4.4.55.git] / drivers / staging / unisys / visorchipset / visorchipset_main.c
index 392e046be35937a66887a9338052edb20cd764f7..70a54899fca6d16b2235d5ecdb49e37713f9ea8e 100644 (file)
@@ -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;