summaryrefslogtreecommitdiff
path: root/src/filter-touchpad.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-09-05 11:33:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-09-08 09:03:15 +1000
commitfc1a28951a4d0cd37150ca7a997aa9227b4d6061 (patch)
treeced9adb5930fe11abe02931363e0a71401d1fea2 /src/filter-touchpad.c
parent0bb82faab1786a194ad37456dc35d5a9953d3d1e (diff)
downloadlibinput-fc1a28951a4d0cd37150ca7a997aa9227b4d6061.tar.gz
filter: constify the interfaces and make them static
No functional change Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/filter-touchpad.c')
-rw-r--r--src/filter-touchpad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter-touchpad.c b/src/filter-touchpad.c
index e8bc8c58..cd51a7ea 100644
--- a/src/filter-touchpad.c
+++ b/src/filter-touchpad.c
@@ -284,7 +284,7 @@ touchpad_accel_profile_linear(struct motion_filter *filter,
return factor * TP_MAGIC_SLOWDOWN;
}
-struct motion_filter_interface accelerator_interface_touchpad = {
+static const struct motion_filter_interface accelerator_interface_touchpad = {
.type = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE,
.filter = accelerator_filter_touchpad,
.filter_constant = touchpad_constant_filter,