summaryrefslogtreecommitdiff
path: root/src/filter-touchpad-flat.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-flat.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-flat.c')
-rw-r--r--src/filter-touchpad-flat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter-touchpad-flat.c b/src/filter-touchpad-flat.c
index bb6c31ad..34867af3 100644
--- a/src/filter-touchpad-flat.c
+++ b/src/filter-touchpad-flat.c
@@ -104,7 +104,7 @@ accelerator_destroy_touchpad_flat(struct motion_filter *filter)
free(accel);
}
-struct motion_filter_interface accelerator_interface_touchpad_flat = {
+static const struct motion_filter_interface accelerator_interface_touchpad_flat = {
.type = LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT,
.filter = accelerator_filter_touchpad_flat,
.filter_constant = accelerator_filter_noop_touchpad_flat,