summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/alps.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-07-26 09:38:51 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-07-27 01:03:14 +0400
commit036e6c7b541a9a57b4e294ee4727045d81f68ca0 (patch)
tree7472d338a769a1a5aeec098a0b8a039cfa1d88e7 /drivers/input/mouse/alps.h
parent40e8f53bffe074e6cd409cf484e4b55c114c93d6 (diff)
downloadlinux-036e6c7b541a9a57b4e294ee4727045d81f68ca0.tar.xz
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.h5
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 {
unsigned char data;
};
+struct alps_bitmap_point {
+ int start_bit;
+ int num_bits;
+};
+
/**
* struct alps_fields - decoded version of the report packet
* @x_map: Bitmap of active X positions for MT.