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) | |
janitor: stick to kernel-style formattingalpha-1
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 @@ | |||
| 34 | #define MT_BUTTON_HWHEEL_LEFT 5 | 34 | #define MT_BUTTON_HWHEEL_LEFT 5 |
| 35 | #define MT_BUTTON_HWHEEL_RIGHT 6 | 35 | #define MT_BUTTON_HWHEEL_RIGHT 6 |
| 36 | 36 | ||
| 37 | typedef unsigned int button_t; | ||
| 38 | |||
| 39 | //////////////////////////////////////////////////////// | ||
| 40 | |||
| 41 | struct FingerData { | 37 | struct FingerData { |
| 42 | int touch_major, touch_minor; | 38 | int touch_major, touch_minor; |
| 43 | int width_major, width_minor; | 39 | int width_major, width_minor; |
| @@ -45,20 +41,14 @@ struct FingerData { | |||
| 45 | int position_x, position_y; | 41 | int position_x, position_y; |
| 46 | }; | 42 | }; |
| 47 | 43 | ||
| 48 | //////////////////////////////////////////////////////// | ||
| 49 | |||
| 50 | struct HWData { | 44 | struct HWData { |
| 51 | struct FingerData finger[DIM_FINGER]; | 45 | struct FingerData finger[DIM_FINGER]; |
| 52 | button_t button; | 46 | unsigned button; |
| 53 | int nfinger, nread; | 47 | int nfinger, nread; |
| 54 | }; | 48 | }; |
| 55 | 49 | ||
| 56 | //////////////////////////////////////////////////////// | ||
| 57 | |||
| 58 | void init_hwdata(struct HWData *hw); | 50 | void init_hwdata(struct HWData *hw); |
| 59 | bool read_hwdata(struct HWData *hw, const struct input_event* ev); | 51 | int read_hwdata(struct HWData *hw, const struct input_event* ev); |
| 60 | void output_hwdata(const struct HWData *hw); | 52 | void output_hwdata(const struct HWData *hw); |
| 61 | 53 | ||
| 62 | //////////////////////////////////////////////////////// | ||
| 63 | |||
| 64 | #endif | 54 | #endif |
