summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-13 19:09:04 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-03-02 08:52:55 +0100
commitdf2cd589766cf7c35a73690fc22d6a6be179cb57 (patch)
tree922c129dae9481f6d062f2bcbfab57fea122be6a /drivers/gpio/gpiolib.c
parentec18d7e7d28625355bf2f5c18d47c09b1cde5cde (diff)
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>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 2253ab495349..2982d983c4fd 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -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 {
@@ -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) {
/*
@@ -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;
}