gpiolib: Rename 'event' to 'ge' to be consistent with other use
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>
This commit is contained in:
parent
ec18d7e7d2
commit
df2cd58976
|
@ -830,11 +830,11 @@ static ssize_t lineevent_read(struct file *filep,
|
||||||
loff_t *f_ps)
|
loff_t *f_ps)
|
||||||
{
|
{
|
||||||
struct lineevent_state *le = filep->private_data;
|
struct lineevent_state *le = filep->private_data;
|
||||||
struct gpioevent_data event;
|
struct gpioevent_data ge;
|
||||||
ssize_t bytes_read = 0;
|
ssize_t bytes_read = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (count < sizeof(event))
|
if (count < sizeof(ge))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
@ -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);
|
spin_unlock(&le->wait.lock);
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
/*
|
/*
|
||||||
|
@ -870,10 +870,10 @@ static ssize_t lineevent_read(struct file *filep,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (copy_to_user(buf + bytes_read, &event, sizeof(event)))
|
if (copy_to_user(buf + bytes_read, &ge, sizeof(ge)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
bytes_read += sizeof(event);
|
bytes_read += sizeof(ge);
|
||||||
} while (count >= bytes_read + sizeof(event));
|
} while (count >= bytes_read + sizeof(ge));
|
||||||
|
|
||||||
return bytes_read;
|
return bytes_read;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue