OSDN Git Service

Input: add input_copy_abs() function
authorHans de Goede <hdegoede@redhat.com>
Tue, 1 Mar 2022 06:58:28 +0000 (22:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Mar 2022 07:26:27 +0000 (23:26 -0800)
commitcb66b9ba5cdacab5592bce31a4083fc4ac172ea5
tree7304866999301a410f380c60ef43631c40597fe4
parent3f9ed5c2fe36794c1b11697bbbc6c8ec82a7d3dc
Input: add input_copy_abs() function

Add a new helper function to copy absinfo from one input_dev to
another input_dev.

This is useful to e.g. setup a pen/stylus input-device for combined
touchscreen/pen hardware where the pen uses the same coordinates as
the touchscreen.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220131143539.109142-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c
include/linux/input.h