[lkml]   [2017]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] gpiolib: skip unwanted events, don't convert them to opposite edge
On Mon, Jul 3, 2017 at 12:12 PM, Bartosz Golaszewski <> wrote:
> The previous fix for filtering out of unwatched events was not entirely
> correct. Instead of skipping the events we don't want, they are now
> interpreted as events with opposing edge.
> In order to fix it: always read the GPIO line value on interrupt and
> only emit the event if it corresponds with the event type we requested.

> struct lineevent_state *le = p;
> struct gpioevent_data ge;
> - int ret;
> + int ret, level;

I prefer
int level;
int ret;

Though it's matter of taste (I don't remember which one Linus' preferable).

With Best Regards,
Andy Shevchenko

 \ /
  Last update: 2017-07-03 13:07    [W:0.049 / U:1.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site