diff options
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r-- | drivers/input/mouse/alps.c | 2 | ||||
-rw-r--r-- | drivers/input/mouse/psmouse.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index ffdc82313192..a12e98158a75 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c | |||
@@ -364,7 +364,7 @@ static int alps_reconnect(struct psmouse *psmouse) | |||
364 | if (alps_get_status(psmouse, param)) | 364 | if (alps_get_status(psmouse, param)) |
365 | return -1; | 365 | return -1; |
366 | 366 | ||
367 | if (param[0] & 0x04) | 367 | if (!(param[0] & 0x04)) |
368 | alps_tap_mode(psmouse, 1); | 368 | alps_tap_mode(psmouse, 1); |
369 | 369 | ||
370 | if (alps_absolute_mode(psmouse)) { | 370 | if (alps_absolute_mode(psmouse)) { |
diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h index dc8e9ae07f32..86691cf43433 100644 --- a/drivers/input/mouse/psmouse.h +++ b/drivers/input/mouse/psmouse.h | |||
@@ -93,11 +93,11 @@ ssize_t psmouse_attr_set_helper(struct device *dev, const char *buf, size_t coun | |||
93 | #define PSMOUSE_DEFINE_ATTR(_name) \ | 93 | #define PSMOUSE_DEFINE_ATTR(_name) \ |
94 | static ssize_t psmouse_attr_show_##_name(struct psmouse *, char *); \ | 94 | static ssize_t psmouse_attr_show_##_name(struct psmouse *, char *); \ |
95 | static ssize_t psmouse_attr_set_##_name(struct psmouse *, const char *, size_t);\ | 95 | static ssize_t psmouse_attr_set_##_name(struct psmouse *, const char *, size_t);\ |
96 | static ssize_t psmouse_do_show_##_name(struct device *d, char *b) \ | 96 | static ssize_t psmouse_do_show_##_name(struct device *d, struct device_attribute *attr, char *b) \ |
97 | { \ | 97 | { \ |
98 | return psmouse_attr_show_helper(d, b, psmouse_attr_show_##_name); \ | 98 | return psmouse_attr_show_helper(d, b, psmouse_attr_show_##_name); \ |
99 | } \ | 99 | } \ |
100 | static ssize_t psmouse_do_set_##_name(struct device *d, const char *b, size_t s)\ | 100 | static ssize_t psmouse_do_set_##_name(struct device *d, struct device_attribute *attr, const char *b, size_t s)\ |
101 | { \ | 101 | { \ |
102 | return psmouse_attr_set_helper(d, b, s, psmouse_attr_set_##_name); \ | 102 | return psmouse_attr_set_helper(d, b, s, psmouse_attr_set_##_name); \ |
103 | } \ | 103 | } \ |