diff options
author | Henrik Rydberg <rydberg@alnilam.(none)> | 2010-02-01 22:03:33 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@alnilam.(none)> | 2010-02-01 22:03:33 +0100 |
commit | f0b1dbdc00bda57c62199cbdc44acbadbb1121b0 (patch) | |
tree | 5234055bf794c28662b139c22e153f7a720a37bc /src/hwdata.h | |
parent | 30869603dc5d36ad2d82cff82900c7e05a4b35c1 (diff) | |
download | xorg-input-kobomultitouch-f0b1dbdc00bda57c62199cbdc44acbadbb1121b0.tar.gz xorg-input-kobomultitouch-f0b1dbdc00bda57c62199cbdc44acbadbb1121b0.tar.bz2 xorg-input-kobomultitouch-f0b1dbdc00bda57c62199cbdc44acbadbb1121b0.zip |
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
Diffstat (limited to 'src/hwdata.h')
-rw-r--r-- | src/hwdata.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/hwdata.h b/src/hwdata.h index d552b1b..9b46073 100644 --- a/src/hwdata.h +++ b/src/hwdata.h @@ -34,10 +34,6 @@ #define MT_BUTTON_HWHEEL_LEFT 5 #define MT_BUTTON_HWHEEL_RIGHT 6 -typedef unsigned int button_t; - -//////////////////////////////////////////////////////// - struct FingerData { int touch_major, touch_minor; int width_major, width_minor; @@ -45,20 +41,14 @@ struct FingerData { int position_x, position_y; }; -//////////////////////////////////////////////////////// - struct HWData { struct FingerData finger[DIM_FINGER]; - button_t button; + unsigned button; int nfinger, nread; }; -//////////////////////////////////////////////////////// - void init_hwdata(struct HWData *hw); -bool read_hwdata(struct HWData *hw, const struct input_event* ev); +int read_hwdata(struct HWData *hw, const struct input_event* ev); void output_hwdata(const struct HWData *hw); -//////////////////////////////////////////////////////// - #endif |