staging: unisys: include: renamed function spar_check_channel in channel.h to match...
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Fri, 19 May 2017 20:17:54 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 16:53:13 +0000 (18:53 +0200)
Renamed function spar_check_channel() to visor_check_channel().

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/include/channel.h
drivers/staging/unisys/include/iochannel.h
drivers/staging/unisys/visorbus/controlvmchannel.h
drivers/staging/unisys/visorbus/visorbus_main.c

index 057421e..e22a151 100644 (file)
@@ -204,12 +204,12 @@ struct signal_queue_header {
  * is used to pass the EFI_DIAG_CAPTURE_PROTOCOL needed to log messages.
  */
 static inline int
-spar_check_channel(struct channel_header *ch,
-                  uuid_le expected_uuid,
-                  char *chname,
-                  u64 expected_min_bytes,
-                  u32 expected_version,
-                  u64 expected_signature)
+visor_check_channel(struct channel_header *ch,
+                   uuid_le expected_uuid,
+                   char *chname,
+                   u64 expected_min_bytes,
+                   u32 expected_version,
+                   u64 expected_signature)
 {
        if (uuid_le_cmp(expected_uuid, NULL_UUID_LE) != 0) {
                /* caller wants us to verify type GUID */
index 9bde848..ce0e2e2 100644 (file)
 #define ULTRA_VSWITCH_CHANNEL_PROTOCOL_VERSIONID 1
 
 #define SPAR_VHBA_CHANNEL_OK_CLIENT(ch) \
-       (spar_check_channel(ch, spar_vhba_channel_protocol_uuid, \
+       (visor_check_channel(ch, spar_vhba_channel_protocol_uuid, \
                            "vhba", MIN_IO_CHANNEL_SIZE,        \
                            ULTRA_VHBA_CHANNEL_PROTOCOL_VERSIONID, \
                            ULTRA_VHBA_CHANNEL_PROTOCOL_SIGNATURE))
 
 #define SPAR_VNIC_CHANNEL_OK_CLIENT(ch) \
-       (spar_check_channel(ch, spar_vnic_channel_protocol_uuid, \
+       (visor_check_channel(ch, spar_vnic_channel_protocol_uuid, \
                            "vnic", MIN_IO_CHANNEL_SIZE,        \
                            ULTRA_VNIC_CHANNEL_PROTOCOL_VERSIONID, \
                            ULTRA_VNIC_CHANNEL_PROTOCOL_SIGNATURE))
index e8716ca..506ed0d 100644 (file)
 #define VISOR_CONTROLVM_CHANNEL_VERSIONID 1
 
 #define VISOR_CONTROLVM_CHANNEL_OK_CLIENT(ch) \
-       (spar_check_channel(ch, \
-                           VISOR_CONTROLVM_CHANNEL_UUID, \
-                           "controlvm", \
-                           sizeof(struct visor_controlvm_channel), \
-                           VISOR_CONTROLVM_CHANNEL_VERSIONID, \
-                           VISOR_CONTROLVM_CHANNEL_SIGNATURE))
+       (visor_check_channel(ch, \
+                            VISOR_CONTROLVM_CHANNEL_UUID, \
+                            "controlvm", \
+                            sizeof(struct visor_controlvm_channel), \
+                            VISOR_CONTROLVM_CHANNEL_VERSIONID, \
+                            VISOR_CONTROLVM_CHANNEL_SIGNATURE))
 
 /* Defines for various channel queues */
 #define CONTROLVM_QUEUE_REQUEST         0
index e2631f5..1c785dd 100644 (file)
@@ -686,12 +686,12 @@ get_vbus_header_info(struct visorchannel *chan,
 {
        int err;
 
-       if (!spar_check_channel(visorchannel_get_header(chan),
-                               visor_vbus_channel_uuid,
-                               "vbus",
-                               sizeof(struct visor_vbus_channel),
-                               VISOR_VBUS_CHANNEL_VERSIONID,
-                               VISOR_VBUS_CHANNEL_SIGNATURE))
+       if (!visor_check_channel(visorchannel_get_header(chan),
+                                visor_vbus_channel_uuid,
+                                "vbus",
+                                sizeof(struct visor_vbus_channel),
+                                VISOR_VBUS_CHANNEL_VERSIONID,
+                                VISOR_VBUS_CHANNEL_SIGNATURE))
                return -EINVAL;
 
        err = visorchannel_read(chan, sizeof(struct channel_header), hdr_info,