diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-07-26 01:38:51 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-26 17:03:14 -0400 |
commit | 036e6c7b541a9a57b4e294ee4727045d81f68ca0 (patch) | |
tree | 7472d338a769a1a5aeec098a0b8a039cfa1d88e7 /drivers/input/mouse/alps.h | |
parent | 40e8f53bffe074e6cd409cf484e4b55c114c93d6 (diff) |
Input: alps - process_bitmap: add alps_get_bitmap_points() helper function
Factor out the identical code for getting the bitmap points for x and y into
a helper function.
Signed-off-by: Hans de Goede <hdegoede@redhat.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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h index 6d2666c0d63a..e900a08b42e5 100644 --- a/drivers/input/mouse/alps.h +++ b/drivers/input/mouse/alps.h | |||
@@ -65,6 +65,11 @@ struct alps_nibble_commands { | |||
65 | unsigned char data; | 65 | unsigned char data; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | struct alps_bitmap_point { | ||
69 | int start_bit; | ||
70 | int num_bits; | ||
71 | }; | ||
72 | |||
68 | /** | 73 | /** |
69 | * struct alps_fields - decoded version of the report packet | 74 | * struct alps_fields - decoded version of the report packet |
70 | * @x_map: Bitmap of active X positions for MT. | 75 | * @x_map: Bitmap of active X positions for MT. |