diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-07-25 22:38:51 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-26 14:03:14 -0700 |
commit | 036e6c7b541a9a57b4e294ee4727045d81f68ca0 (patch) | |
tree | 7472d338a769a1a5aeec098a0b8a039cfa1d88e7 /drivers/input/mouse/alps.h | |
parent | 40e8f53bffe074e6cd409cf484e4b55c114c93d6 (diff) | |
download | blackbird-op-linux-036e6c7b541a9a57b4e294ee4727045d81f68ca0.tar.gz blackbird-op-linux-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.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 { 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. |