diff options
| -rw-r--r-- | drivers/input/mouse/alps.c | 2 | ||||
| -rw-r--r-- | drivers/input/mouse/alps.h | 30 |
2 files changed, 16 insertions, 16 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index f205b8be2ce4..92a886b0eca4 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c | |||
| @@ -2526,7 +2526,7 @@ int alps_detect(struct psmouse *psmouse, bool set_properties) | |||
| 2526 | psmouse->vendor = "ALPS"; | 2526 | psmouse->vendor = "ALPS"; |
| 2527 | psmouse->name = dummy.flags & ALPS_DUALPOINT ? | 2527 | psmouse->name = dummy.flags & ALPS_DUALPOINT ? |
| 2528 | "DualPoint TouchPad" : "GlidePoint"; | 2528 | "DualPoint TouchPad" : "GlidePoint"; |
| 2529 | psmouse->model = dummy.proto_version << 8; | 2529 | psmouse->model = dummy.proto_version; |
| 2530 | } | 2530 | } |
| 2531 | return 0; | 2531 | return 0; |
| 2532 | } | 2532 | } |
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h index 66240b47819a..94645bfa2a0d 100644 --- a/drivers/input/mouse/alps.h +++ b/drivers/input/mouse/alps.h | |||
| @@ -14,13 +14,13 @@ | |||
| 14 | 14 | ||
| 15 | #include <linux/input/mt.h> | 15 | #include <linux/input/mt.h> |
| 16 | 16 | ||
| 17 | #define ALPS_PROTO_V1 1 | 17 | #define ALPS_PROTO_V1 0x100 |
| 18 | #define ALPS_PROTO_V2 2 | 18 | #define ALPS_PROTO_V2 0x200 |
| 19 | #define ALPS_PROTO_V3 3 | 19 | #define ALPS_PROTO_V3 0x300 |
| 20 | #define ALPS_PROTO_V4 4 | 20 | #define ALPS_PROTO_V4 0x400 |
| 21 | #define ALPS_PROTO_V5 5 | 21 | #define ALPS_PROTO_V5 0x500 |
| 22 | #define ALPS_PROTO_V6 6 | 22 | #define ALPS_PROTO_V6 0x600 |
| 23 | #define ALPS_PROTO_V7 7 /* t3btl t4s */ | 23 | #define ALPS_PROTO_V7 0x700 /* t3btl t4s */ |
| 24 | 24 | ||
| 25 | #define MAX_TOUCHES 2 | 25 | #define MAX_TOUCHES 2 |
| 26 | 26 | ||
| @@ -64,11 +64,11 @@ enum V7_PACKET_ID { | |||
| 64 | * lists a number of such touchpads. | 64 | * lists a number of such touchpads. |
| 65 | */ | 65 | */ |
| 66 | struct alps_model_info { | 66 | struct alps_model_info { |
| 67 | unsigned char signature[3]; | 67 | u8 signature[3]; |
| 68 | unsigned char command_mode_resp; | 68 | u8 command_mode_resp; |
| 69 | unsigned char proto_version; | 69 | u16 proto_version; |
| 70 | unsigned char byte0, mask0; | 70 | u8 byte0, mask0; |
| 71 | int flags; | 71 | unsigned int flags; |
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | /** | 74 | /** |
| @@ -166,9 +166,9 @@ struct alps_data { | |||
| 166 | /* these are autodetected when the device is identified */ | 166 | /* these are autodetected when the device is identified */ |
| 167 | const struct alps_nibble_commands *nibble_commands; | 167 | const struct alps_nibble_commands *nibble_commands; |
| 168 | int addr_command; | 168 | int addr_command; |
| 169 | unsigned char proto_version; | 169 | u16 proto_version; |
| 170 | unsigned char byte0, mask0; | 170 | u8 byte0, mask0; |
| 171 | unsigned char fw_ver[3]; | 171 | u8 fw_ver[3]; |
| 172 | int flags; | 172 | int flags; |
| 173 | int x_max; | 173 | int x_max; |
| 174 | int y_max; | 174 | int y_max; |
