Skip to content
Snippets Groups Projects
Commit 8ae2db5b authored by Derek Foreman's avatar Derek Foreman Committed by Bryce Harrington
Browse files

input: Pass the appropriate pointer type to bindings instead of a seat


Normally we need to check if a seat's [device_type]_count is > 0 before
we can use the associated pointer.  However, in a binding you're
guaranteed that the seat has a device of that type.  If we pass in
that type instead of the seat, it's obvious we don't have to test it.

The bindings can still get the seat pointer via whatever->seat if they
need it.

This is preparation for a follow up patch that prevents direct access
to seat->device_type pointers, and this will save us a few tests at
that point.

Reviewed-by: default avatarJonas Ådahl <jadahl@gmail.com>
Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
parent 0720ea36
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment