staging: unisys: refactor ULTRA_DIAG_CHANNEL_OK_SERVER
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:30:39 +0000 (14:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:12 +0000 (10:33 +0800)
Rename this macro to SPAR_DIAG_CHANNEL_OK_SERVER and fix the CamelCase
parameter.

ActualBytes => bytes

Fix indentation and add a blank line after the macro for better readability.

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/diagchannel.h

index 13fe4751ca79f70fac2683f0a666c4b72df422ad..db8b9829eea4ecb86590105e3de5dbafbbe8c8d0 100644 (file)
@@ -66,11 +66,12 @@ static const uuid_le spar_diag_channel_protocol_uuid =
                                   ULTRA_DIAG_CHANNEL_PROTOCOL_VERSIONID,\
                                   ULTRA_DIAG_CHANNEL_PROTOCOL_SIGNATURE))
 
-#define ULTRA_DIAG_CHANNEL_OK_SERVER(actualBytes)              \
-       (spar_check_channel_server(spar_diag_channel_protocol_uuid,     \
-                                  "diag",                              \
-                                  sizeof(ULTRA_DIAG_CHANNEL_PROTOCOL), \
-                                   actualBytes))
+#define SPAR_DIAG_CHANNEL_OK_SERVER(bytes)\
+       (spar_check_channel_server(spar_diag_channel_protocol_uuid,\
+                                  "diag",\
+                                  sizeof(ULTRA_DIAG_CHANNEL_PROTOCOL),\
+                                  bytes))
+
 #define MAX_MODULE_NAME_SIZE 128       /* Maximum length of module name... */
 #define MAX_ADDITIONAL_INFO_SIZE 256   /* Maximum length of any additional info
                                         * accompanying event... */