staging: unisys: visorbus: renamed #defines in vbuschannel.h to match driver namespace
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Fri, 19 May 2017 20:17:44 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 16:53:12 +0000 (18:53 +0200)
Renamed #defines:
* SPAR_VBUS_CHANNEL_PROTOCOL_UUID to VISOR_VBUS_CHANNEL_UUID
* SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE to
VISOR_VBUS_CHANNEL_SIGNATURE
* SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID to
VISOR_VBUS_CHANNEL_VERSIONID

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/vbuschannel.h
drivers/staging/unisys/visorbus/visorbus_main.c

index f0ef5ecf3d7d25098de2c106c43ac0029785bb74..c87b190ccc66409f5bc0c81f9609181f1bc1cdb2 100644 (file)
 #include "channel.h"
 
 /* {193b331b-c58f-11da-95a9-00e08161165f} */
-#define SPAR_VBUS_CHANNEL_PROTOCOL_UUID \
+#define VISOR_VBUS_CHANNEL_UUID \
        UUID_LE(0x193b331b, 0xc58f, 0x11da, \
                0x95, 0xa9, 0x0, 0xe0, 0x81, 0x61, 0x16, 0x5f)
-static const uuid_le spar_vbus_channel_protocol_uuid =
-       SPAR_VBUS_CHANNEL_PROTOCOL_UUID;
+static const uuid_le visor_vbus_channel_uuid = VISOR_VBUS_CHANNEL_UUID;
 
-#define SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE ULTRA_CHANNEL_PROTOCOL_SIGNATURE
+#define VISOR_VBUS_CHANNEL_SIGNATURE ULTRA_CHANNEL_PROTOCOL_SIGNATURE
 
 /* Must increment this whenever you insert or delete fields within this channel
  * struct.  Also increment whenever you change the meaning of fields within this
@@ -41,7 +40,7 @@ static const uuid_le spar_vbus_channel_protocol_uuid =
  * usually add fields to the END of the channel struct withOUT needing to
  * increment this.
  */
-#define SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID 1
+#define VISOR_VBUS_CHANNEL_VERSIONID 1
 
 /*
  * An array of this struct is present in the channel area for each vbus.
index 984d4d15fa93dee57661688259ff95a8eb0d6d38..f72ccd901760c8e59786c573fca6f4e157fd6cb7 100644 (file)
@@ -689,11 +689,11 @@ get_vbus_header_info(struct visorchannel *chan,
        int err;
 
        if (!spar_check_channel(visorchannel_get_header(chan),
-                               spar_vbus_channel_protocol_uuid,
+                               visor_vbus_channel_uuid,
                                "vbus",
                                sizeof(struct spar_vbus_channel_protocol),
-                               SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID,
-                               SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE))
+                               VISOR_VBUS_CHANNEL_VERSIONID,
+                               VISOR_VBUS_CHANNEL_SIGNATURE))
                return -EINVAL;
 
        err = visorchannel_read(chan, sizeof(struct channel_header), hdr_info,