diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-02 09:48:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-05 08:51:38 +1000 |
commit | 0198c02774a5063c5cf45b6eddef4a33d9f494d7 (patch) | |
tree | bfdd9f3a8d8369494537845e834fa36930f67255 | |
parent | 8b1446f798478a9d8483cdaae8d7ff1bae5c045b (diff) |
Always make the input buffer size 200
PreInit initalizes the input buffer with 200, DeviceOn only with 64. For
consistency, use the same size in both.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/synaptics.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 597aad2..e0d3555 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -111,6 +111,8 @@ typedef enum { #define DBG(a,b) #endif +#define INPUT_BUFFER_SIZE 200 + /***************************************************************************** * Forward declaration ****************************************************************************/ @@ -635,7 +637,7 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flags) if (!alloc_param_data(local)) goto SetupProc_fail; - priv->comm.buffer = XisbNew(local->fd, 200); + priv->comm.buffer = XisbNew(local->fd, INPUT_BUFFER_SIZE); DBG(9, XisbTrace(priv->comm.buffer, 1)); if (!QueryHardware(local)) { @@ -757,7 +759,7 @@ DeviceOn(DeviceIntPtr dev) if (priv->proto_ops->DeviceOnHook) priv->proto_ops->DeviceOnHook(local, &priv->synpara); - priv->comm.buffer = XisbNew(local->fd, 64); + priv->comm.buffer = XisbNew(local->fd, INPUT_BUFFER_SIZE); if (!priv->comm.buffer) { xf86CloseSerial(local->fd); local->fd = -1; |