Skip to content

Commit

Permalink
gpiolib: Rename 'event' to 'ge' to be consistent with other use
Browse files Browse the repository at this point in the history
Rename 'event' to 'ge' to be consistent with other use.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
  • Loading branch information
Andy Shevchenko authored and Bartosz Golaszewski committed Mar 2, 2020
1 parent ec18d7e commit df2cd58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,11 +830,11 @@ static ssize_t lineevent_read(struct file *filep,
loff_t *f_ps)
{
struct lineevent_state *le = filep->private_data;
struct gpioevent_data event;
struct gpioevent_data ge;
ssize_t bytes_read = 0;
int ret;

if (count < sizeof(event))
if (count < sizeof(ge))
return -EINVAL;

do {
Expand All @@ -858,7 +858,7 @@ static ssize_t lineevent_read(struct file *filep,
}
}

ret = kfifo_out(&le->events, &event, 1);
ret = kfifo_out(&le->events, &ge, 1);
spin_unlock(&le->wait.lock);
if (ret != 1) {
/*
Expand All @@ -870,10 +870,10 @@ static ssize_t lineevent_read(struct file *filep,
break;
}

if (copy_to_user(buf + bytes_read, &event, sizeof(event)))
if (copy_to_user(buf + bytes_read, &ge, sizeof(ge)))
return -EFAULT;
bytes_read += sizeof(event);
} while (count >= bytes_read + sizeof(event));
bytes_read += sizeof(ge);
} while (count >= bytes_read + sizeof(ge));

return bytes_read;
}
Expand Down

0 comments on commit df2cd58

Please sign in to comment.