Commit 2a16c522 authored by Peter Hutterer's avatar Peter Hutterer

touchpad: constify a few helper functions

May help the compiler with further optimization
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent d1d3ea4d
......@@ -476,7 +476,7 @@ tp_process_key(struct tp_dispatch *tp,
static void
tp_unpin_finger(struct tp_dispatch *tp, struct tp_touch *t)
tp_unpin_finger(const struct tp_dispatch *tp, struct tp_touch *t)
double xdist, ydist;
......@@ -388,7 +388,8 @@ tp_libinput_context(const struct tp_dispatch *tp)
static inline struct normalized_coords
tp_normalize_delta(struct tp_dispatch *tp, struct device_float_coords delta)
tp_normalize_delta(const struct tp_dispatch *tp,
struct device_float_coords delta)
struct normalized_coords normalized;
......@@ -403,7 +404,8 @@ tp_normalize_delta(struct tp_dispatch *tp, struct device_float_coords delta)
* in the x-axis' coordinate space.
static inline struct device_float_coords
tp_unnormalize_for_xaxis(struct tp_dispatch *tp, struct normalized_coords delta)
tp_unnormalize_for_xaxis(const struct tp_dispatch *tp,
struct normalized_coords delta)
struct device_float_coords raw;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment