aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-07-25 22:38:51 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-07-26 14:03:14 -0700
commit036e6c7b541a9a57b4e294ee4727045d81f68ca0 (patch)
tree7472d338a769a1a5aeec098a0b8a039cfa1d88e7 /drivers/input/mouse/alps.h
parentInput: alps - process_bitmap: don't invert the Y-axis on Rushmore (diff)
downloadlinux-dev-036e6c7b541a9a57b4e294ee4727045d81f68ca0.tar.xz
linux-dev-036e6c7b541a9a57b4e294ee4727045d81f68ca0.zip
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.