From f0b1dbdc00bda57c62199cbdc44acbadbb1121b0 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 1 Feb 2010 22:03:33 +0100 Subject: janitor: stick to kernel-style formatting With this commit, the whole code base complies with the kernel format style, and patches can be checked against the kernel-provided ./scripts/checkpatch.pl --- src/state.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index d8e096a..340803a 100644 --- a/src/state.h +++ b/src/state.h @@ -25,34 +25,26 @@ #include "capabilities.h" #include "hwdata.h" -//////////////////////////////////////////////////////// - /* zero id means not mapped (not touching) */ struct FingerState { struct FingerData hw; int id; }; -//////////////////////////////////////////////////////// - struct State { struct FingerState finger[DIM_FINGER]; - button_t button; + unsigned button; int nfinger; int lastid; }; -//////////////////////////////////////////////////////// - void init_state(struct State *s); void modify_state(struct State *s, - const struct HWData* hw, - const struct Capabilities* caps); + const struct HWData *hw, + const struct Capabilities *caps); void output_state(const struct State *s); const struct FingerState *find_finger(const struct State *s, int id); int count_fingers(const struct State *s); -//////////////////////////////////////////////////////// - #endif -- cgit v1.2.3