Fix indentation mishap

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Remove @DRIVER_NAME@ from Makefile.am

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
DeviceOn and friends return a status code, not a bool

No functional changes, just making things more obvious.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Remove an unused define for 1/sqrt(2)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Remove typedefs from all enums

We currently mix non-typedef'd and typedef'd enums in the code. Stop this
mixing, remove typedefs to make the code more obvious.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
tools: un-typedef TouchpadState

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Un-typedef model_lookup_t

Long-term, structs will be structs without typedef. This one is the easiest
one to convert, the rest follows later.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
check for HAVE_CONFIG_H before including config.h

No real effect, just for correctness. Plus, move the include directive up to
be the first include.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Fix indentation for the synaptics protocol ops

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
ps2comm: use ErrorF from PS2DBG directly

And switch a few current DBG messages to PS2DBG to have one ps/2 debugging
output command.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Move properties header to where it's needed

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Remove leftover HAVE_SMOOTH_SCROLL typedef

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Add MODEL_UNIBODY_MACBOOK touchpad model for bcm5974 devices

Initially, treat them the same as MODEL_APPLETOUCH devices, as that is
what they were recognized as before.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Turn down the default sensitivity for unibody MacBook touchpads

The touchpads are too sensitive by default. A touch is activated when a
finger hovers a millimeter off the device. This change turns down the
default sensitivity so that accidental touchpad interactions are
lessened and pointer interaction accuracy is increased.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
eventcomm: simplify conditions

As of 3f9794a8a0f019a4b153941c9ec1927c7797ce6f, slot_index is always >= 0
when we get to either of these conditions.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
eventcomm: proto_data is not null, don't check

We allocate it just a few lines north of here, and already dereferenced it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>