Commit be408256 authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman

staging: unisys: visorchannel: Rename CamelCase variable channelBytes

Rename channelBytes to channel_bytes in the series of visorchannel_create
functions provided by visorchannel.
Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ce6cbb6
...@@ -35,17 +35,17 @@ ...@@ -35,17 +35,17 @@
typedef struct VISORCHANNEL_Tag VISORCHANNEL; typedef struct VISORCHANNEL_Tag VISORCHANNEL;
/* Note that for visorchannel_create() and visorchannel_create_overlapped(), /* Note that for visorchannel_create() and visorchannel_create_overlapped(),
* <channelBytes> and <guid> arguments may be 0 if we are a channel CLIENT. * <channel_bytes> and <guid> arguments may be 0 if we are a channel CLIENT.
* In this case, the values can simply be read from the channel header. * In this case, the values can simply be read from the channel header.
*/ */
VISORCHANNEL *visorchannel_create(HOSTADDRESS physaddr, VISORCHANNEL *visorchannel_create(HOSTADDRESS physaddr,
ulong channelBytes, uuid_le guid); ulong channel_bytes, uuid_le guid);
VISORCHANNEL *visorchannel_create_overlapped(ulong channelBytes, VISORCHANNEL *visorchannel_create_overlapped(ulong channel_bytes,
VISORCHANNEL *parent, ulong off, VISORCHANNEL *parent, ulong off,
uuid_le guid); uuid_le guid);
VISORCHANNEL *visorchannel_create_with_lock(HOSTADDRESS physaddr, VISORCHANNEL *visorchannel_create_with_lock(HOSTADDRESS physaddr,
ulong channelBytes, uuid_le guid); ulong channel_bytes, uuid_le guid);
VISORCHANNEL *visorchannel_create_overlapped_with_lock(ulong channelBytes, VISORCHANNEL *visorchannel_create_overlapped_with_lock(ulong channel_bytes,
VISORCHANNEL *parent, VISORCHANNEL *parent,
ulong off, uuid_le guid); ulong off, uuid_le guid);
void visorchannel_destroy(VISORCHANNEL *channel); void visorchannel_destroy(VISORCHANNEL *channel);
......
...@@ -49,7 +49,7 @@ struct VISORCHANNEL_Tag { ...@@ -49,7 +49,7 @@ struct VISORCHANNEL_Tag {
* NOT modify this data area. * NOT modify this data area.
*/ */
static VISORCHANNEL * static VISORCHANNEL *
visorchannel_create_guts(HOSTADDRESS physaddr, ulong channelBytes, visorchannel_create_guts(HOSTADDRESS physaddr, ulong channel_bytes,
VISORCHANNEL *parent, ulong off, uuid_le guid, VISORCHANNEL *parent, ulong off, uuid_le guid,
BOOL needs_lock) BOOL needs_lock)
{ {
...@@ -87,18 +87,18 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channelBytes, ...@@ -87,18 +87,18 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channelBytes,
rc = NULL; rc = NULL;
goto cleanup; goto cleanup;
} }
if (channelBytes == 0) if (channel_bytes == 0)
/* we had better be a CLIENT of this channel */ /* we had better be a CLIENT of this channel */
channelBytes = (ulong)p->chan_hdr.size; channel_bytes = (ulong)p->chan_hdr.size;
if (uuid_le_cmp(guid, NULL_UUID_LE) == 0) if (uuid_le_cmp(guid, NULL_UUID_LE) == 0)
/* we had better be a CLIENT of this channel */ /* we had better be a CLIENT of this channel */
guid = p->chan_hdr.chtype; guid = p->chan_hdr.chtype;
if (visor_memregion_resize(p->memregion, channelBytes) < 0) { if (visor_memregion_resize(p->memregion, channel_bytes) < 0) {
ERRDRV("visor_memregion_resize failed: (status=0)\n"); ERRDRV("visor_memregion_resize failed: (status=0)\n");
rc = NULL; rc = NULL;
goto cleanup; goto cleanup;
} }
p->size = channelBytes; p->size = channel_bytes;
p->guid = guid; p->guid = guid;
rc = p; rc = p;
...@@ -114,37 +114,37 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channelBytes, ...@@ -114,37 +114,37 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channelBytes,
} }
VISORCHANNEL * VISORCHANNEL *
visorchannel_create(HOSTADDRESS physaddr, ulong channelBytes, uuid_le guid) visorchannel_create(HOSTADDRESS physaddr, ulong channel_bytes, uuid_le guid)
{ {
return visorchannel_create_guts(physaddr, channelBytes, NULL, 0, guid, return visorchannel_create_guts(physaddr, channel_bytes, NULL, 0, guid,
FALSE); FALSE);
} }
EXPORT_SYMBOL_GPL(visorchannel_create); EXPORT_SYMBOL_GPL(visorchannel_create);
VISORCHANNEL * VISORCHANNEL *
visorchannel_create_with_lock(HOSTADDRESS physaddr, ulong channelBytes, visorchannel_create_with_lock(HOSTADDRESS physaddr, ulong channel_bytes,
uuid_le guid) uuid_le guid)
{ {
return visorchannel_create_guts(physaddr, channelBytes, NULL, 0, guid, return visorchannel_create_guts(physaddr, channel_bytes, NULL, 0, guid,
TRUE); TRUE);
} }
EXPORT_SYMBOL_GPL(visorchannel_create_with_lock); EXPORT_SYMBOL_GPL(visorchannel_create_with_lock);
VISORCHANNEL * VISORCHANNEL *
visorchannel_create_overlapped(ulong channelBytes, visorchannel_create_overlapped(ulong channel_bytes,
VISORCHANNEL *parent, ulong off, uuid_le guid) VISORCHANNEL *parent, ulong off, uuid_le guid)
{ {
return visorchannel_create_guts(0, channelBytes, parent, off, guid, return visorchannel_create_guts(0, channel_bytes, parent, off, guid,
FALSE); FALSE);
} }
EXPORT_SYMBOL_GPL(visorchannel_create_overlapped); EXPORT_SYMBOL_GPL(visorchannel_create_overlapped);
VISORCHANNEL * VISORCHANNEL *
visorchannel_create_overlapped_with_lock(ulong channelBytes, visorchannel_create_overlapped_with_lock(ulong channel_bytes,
VISORCHANNEL *parent, ulong off, VISORCHANNEL *parent, ulong off,
uuid_le guid) uuid_le guid)
{ {
return visorchannel_create_guts(0, channelBytes, parent, off, guid, return visorchannel_create_guts(0, channel_bytes, parent, off, guid,
TRUE); TRUE);
} }
EXPORT_SYMBOL_GPL(visorchannel_create_overlapped_with_lock); EXPORT_SYMBOL_GPL(visorchannel_create_overlapped_with_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment