]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: unisys: refactor parser_byteStream_get
authorBenjamin Romer <benjamin.romer@unisys.com>
Mon, 16 Mar 2015 17:57:55 +0000 (13:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2015 20:53:43 +0000 (21:53 +0100)
Fix this CamelCase function name:
parser_byteStream_get => parser_byte_stream_get

Update all references to use the fixed name. Fix the spacing in the typecast.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/parser.c
drivers/staging/unisys/visorchipset/parser.h

index 29d840c74193ac18f82ff5bb75720f557d8edb00..d8a2d6f5a75d7ac953f6747056c956172c6103d5 100644 (file)
@@ -165,14 +165,13 @@ parser_simpleString_get(struct parser_context *ctx)
 
 /* Obtain a copy of the buffer in the payload area.
  */
-void *
-parser_byteStream_get(struct parser_context *ctx, ulong *nbytes)
+void *parser_byte_stream_get(struct parser_context *ctx, ulong *nbytes)
 {
        if (!ctx->byte_stream)
                return NULL;
        if (nbytes)
                *nbytes = ctx->param_bytes;
-       return (void *) ctx->data;
+       return (void *)ctx->data;
 }
 
 uuid_le
index a06772fdb344edbe93f14c52bcb754e787d5edd8..2b903f1beff2e309d390cc1041780fa77a34a51c 100644 (file)
@@ -40,7 +40,7 @@ void *parser_param_get(struct parser_context *ctx, char *nam, int namesize);
 void *parser_string_get(struct parser_context *ctx);
 uuid_le parser_id_get(struct parser_context *ctx);
 char *parser_simpleString_get(struct parser_context *ctx);
-void *parser_byteStream_get(struct parser_context *ctx, ulong *nbytes);
+void *parser_byte_stream_get(struct parser_context *ctx, ulong *nbytes);
 void parser_done(struct parser_context *ctx);
 
 #endif