* [PATCH v1] gpiolib: Rename 'event' to 'ge' to be consistent with other use
@ 2020-02-13 17:09 Andy Shevchenko
2020-02-17 9:41 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2020-02-13 17:09 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, linux-gpio; +Cc: Andy Shevchenko
Rename 'event' to 'ge' to be consistent with other use.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/gpio/gpiolib.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 20e411fb7d1c..d8adaa485a4b 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;
}
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] gpiolib: Rename 'event' to 'ge' to be consistent with other use
2020-02-13 17:09 [PATCH v1] gpiolib: Rename 'event' to 'ge' to be consistent with other use Andy Shevchenko
@ 2020-02-17 9:41 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2020-02-17 9:41 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Linus Walleij, linux-gpio
czw., 13 lut 2020 o 18:09 Andy Shevchenko
<andriy.shevchenko@linux.intel.com> napisał(a):
>
> Rename 'event' to 'ge' to be consistent with other use.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
Patch applied, thanks!
Bartosz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-17 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-13 17:09 [PATCH v1] gpiolib: Rename 'event' to 'ge' to be consistent with other use Andy Shevchenko
2020-02-17 9:41 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).