diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-23 14:22:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-31 14:56:49 +1000 |
commit | e254d058faaa4529003a45faf683a032d5dd86c1 (patch) | |
tree | 9e0c9472638cfa22aae133fdf15687354153ebcc | |
parent | 9c819b5f541b22c8b866f4b69344ac056597b806 (diff) |
Un-typedef model_lookup_t
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/eventcomm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index 4daa350..8ef8826 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -275,15 +275,16 @@ event_query_is_touchpad(int fd, char test_grab) return (ret == TRUE); } -typedef struct { +#define PRODUCT_ANY 0x0000 + +struct model_lookup_t { short vendor; short product; enum TouchpadModel model; -} model_lookup_t; +}; -#define PRODUCT_ANY 0x0000 -static model_lookup_t model_lookup_table[] = { +static struct model_lookup_t model_lookup_table[] = { {0x0002, 0x0007, MODEL_SYNAPTICS}, {0x0002, 0x0008, MODEL_ALPS}, {0x05ac, PRODUCT_ANY, MODEL_APPLETOUCH}, @@ -307,7 +308,7 @@ event_query_model(int fd, enum TouchpadModel *model_out, { struct input_id id; int rc; - model_lookup_t *model_lookup; + struct model_lookup_t *model_lookup; SYSCALL(rc = ioctl(fd, EVIOCGID, &id)); if (rc < 0) |