Re: [PATCH libinput] evdev: reject devices with a min == max axis range

2015-03-23 Thread Hans de Goede
Hi, On 23-03-15 05:29, Peter Hutterer wrote: Except for a few axes where this may be correct, a min == max axis range indicates a broken kernel driver. To avoid potential divisions by zero when scaling this axis later, reject such a device outright. Signed-off-by: Peter Hutterer Looks good:

[PATCH libinput] evdev: reject devices with a min == max axis range

2015-03-22 Thread Peter Hutterer
Except for a few axes where this may be correct, a min == max axis range indicates a broken kernel driver. To avoid potential divisions by zero when scaling this axis later, reject such a device outright. Signed-off-by: Peter Hutterer --- src/evdev.c | 34 + test/device