Commit 61b38f02 authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Greg Kroah-Hartman

platform: goldfish: pipe: Rename 'wakeBit' to 'wake_bit'

checkpatch: Avoid CamelCase
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d1021a0
...@@ -363,18 +363,18 @@ static int transfer_max_buffers(struct goldfish_pipe *pipe, ...@@ -363,18 +363,18 @@ static int transfer_max_buffers(struct goldfish_pipe *pipe,
static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write)
{ {
u32 wakeBit = is_write ? BIT_WAKE_ON_WRITE : BIT_WAKE_ON_READ; u32 wake_bit = is_write ? BIT_WAKE_ON_WRITE : BIT_WAKE_ON_READ;
set_bit(wakeBit, &pipe->flags); set_bit(wake_bit, &pipe->flags);
/* Tell the emulator we're going to wait for a wake event */ /* Tell the emulator we're going to wait for a wake event */
(void)goldfish_cmd(pipe, (void)goldfish_cmd(pipe,
is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ); is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ);
while (test_bit(wakeBit, &pipe->flags)) { while (test_bit(wake_bit, &pipe->flags)) {
if (wait_event_interruptible( if (wait_event_interruptible(
pipe->wake_queue, pipe->wake_queue,
!test_bit(wakeBit, &pipe->flags))) !test_bit(wake_bit, &pipe->flags)))
return -ERESTARTSYS; return -ERESTARTSYS;
if (test_bit(BIT_CLOSED_ON_HOST, &pipe->flags)) if (test_bit(BIT_CLOSED_ON_HOST, &pipe->flags))
......
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