Re: [PATCH v2 libinput 2/4] Move opening and closing the device fd into evdev.c

2014-02-06 Thread Jonas Ã…dahl
On Thu, Feb 06, 2014 at 09:20:15AM +1000, Peter Hutterer wrote: evdev_device_remove() already calls close(device-fd). Move the close_restricted call there to avoid one privileged call in the backend and one in the device. And move the open_restricted() into the evdev device too to reduce the

[PATCH v2 libinput 2/4] Move opening and closing the device fd into evdev.c

2014-02-05 Thread Peter Hutterer
evdev_device_remove() already calls close(device-fd). Move the close_restricted call there to avoid one privileged call in the backend and one in the device. And move the open_restricted() into the evdev device too to reduce the duplicated code in the two backends. Update to one of the tests: