aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.h
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2013-02-14 01:24:55 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-02-14 12:18:20 -0500
commit7a9f73e75cd0dcd320166aa340141893bd1848d1 (patch)
treec5a531493f655f0eb0a06d5547c64c1e8ae904ac /drivers/input/mouse/alps.h
parent56fd340ebb533cb45c5eaf350cf889c43c5911e6 (diff)
Input: ALPS - move pixel and bitmap info into alps_data struct
Newer touchpads use different constants, so make them runtime- configurable. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Tested-by: Dave Turvene <dturvene@dahetral.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/alps.h')
-rw-r--r--drivers/input/mouse/alps.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h
index 0934f8bf7d76..5e638be33dc9 100644
--- a/drivers/input/mouse/alps.h
+++ b/drivers/input/mouse/alps.h
@@ -72,6 +72,10 @@ struct alps_nibble_commands {
72 * mask0, should match byte0. 72 * mask0, should match byte0.
73 * @mask0: The mask used to check the first byte of the report. 73 * @mask0: The mask used to check the first byte of the report.
74 * @flags: Additional device capabilities (passthrough port, trackstick, etc.). 74 * @flags: Additional device capabilities (passthrough port, trackstick, etc.).
75 * @x_max: Largest possible X position value.
76 * @y_max: Largest possible Y position value.
77 * @x_bits: Number of X bits in the MT bitmap.
78 * @y_bits: Number of Y bits in the MT bitmap.
75 * @hw_init: Protocol-specific hardware init function. 79 * @hw_init: Protocol-specific hardware init function.
76 * @process_packet: Protocol-specific function to process a report packet. 80 * @process_packet: Protocol-specific function to process a report packet.
77 * @set_abs_params: Protocol-specific function to configure the input_dev. 81 * @set_abs_params: Protocol-specific function to configure the input_dev.
@@ -96,6 +100,10 @@ struct alps_data {
96 unsigned char proto_version; 100 unsigned char proto_version;
97 unsigned char byte0, mask0; 101 unsigned char byte0, mask0;
98 unsigned char flags; 102 unsigned char flags;
103 int x_max;
104 int y_max;
105 int x_bits;
106 int y_bits;
99 107
100 int (*hw_init)(struct psmouse *psmouse); 108 int (*hw_init)(struct psmouse *psmouse);
101 void (*process_packet)(struct psmouse *psmouse); 109 void (*process_packet)(struct psmouse *psmouse);