Message ID | 5051F648.8030003@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Sep 13, 2012 at 05:05:44PM +0200, Jiri Slaby wrote: > Hi, > > -next commit "Input: Send events one packet at a time" seems like broke > the input layer: Right, Henrik has a patch for this. Thanks.
On Thu, Sep 13, 2012 at 08:57:38AM -0700, Dmitry Torokhov wrote: > On Thu, Sep 13, 2012 at 05:05:44PM +0200, Jiri Slaby wrote: > > Hi, > > > > -next commit "Input: Send events one packet at a time" seems like broke > > the input layer: > > Right, Henrik has a patch for this. Yep, it just missed the cut for today, but will appear in tomorrow's -next. Thanks, Henrik -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -112,9 +112,12 @@ static unsigned int input_to_handler(struct input_handle *handle, if (!count) return 0; + WARN_ONCE(!handler->events && !handler->event, "%s: %s", + handle->name, handler->name); + if (handler->events) handler->events(handle, vals, count); - else + else if (handler->event) for (v = vals; v != end; v++) handler->event(handle, v->type, v->code, v->value);