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/capabilities.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/capabilities.h')
| -rw-r--r-- | src/capabilities.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/capabilities.h b/src/capabilities.h index 63dada5..66ce29b 100644 --- a/src/capabilities.h +++ b/src/capabilities.h | |||
| @@ -24,15 +24,13 @@ | |||
| 24 | 24 | ||
| 25 | #include "common.h" | 25 | #include "common.h" |
| 26 | 26 | ||
| 27 | //////////////////////////////////////////////////////// | ||
| 28 | |||
| 29 | struct Capabilities { | 27 | struct Capabilities { |
| 30 | bool has_left, has_middle; | 28 | int has_left, has_middle; |
| 31 | bool has_right, has_mtdata; | 29 | int has_right, has_mtdata; |
| 32 | bool has_touch_major, has_touch_minor; | 30 | int has_touch_major, has_touch_minor; |
| 33 | bool has_width_major, has_width_minor; | 31 | int has_width_major, has_width_minor; |
| 34 | bool has_orientation, has_dummy; | 32 | int has_orientation, has_dummy; |
| 35 | bool has_position_x, has_position_y; | 33 | int has_position_x, has_position_y; |
| 36 | struct input_absinfo abs_touch_major; | 34 | struct input_absinfo abs_touch_major; |
| 37 | struct input_absinfo abs_touch_minor; | 35 | struct input_absinfo abs_touch_minor; |
| 38 | struct input_absinfo abs_width_major; | 36 | struct input_absinfo abs_width_major; |
| @@ -42,11 +40,7 @@ struct Capabilities { | |||
| 42 | struct input_absinfo abs_position_y; | 40 | struct input_absinfo abs_position_y; |
| 43 | }; | 41 | }; |
| 44 | 42 | ||
| 45 | //////////////////////////////////////////////////////// | ||
| 46 | |||
| 47 | int read_capabilities(struct Capabilities *cap, int fd); | 43 | int read_capabilities(struct Capabilities *cap, int fd); |
| 48 | void output_capabilities(const struct Capabilities *cap); | 44 | void output_capabilities(const struct Capabilities *cap); |
| 49 | 45 | ||
| 50 | //////////////////////////////////////////////////////// | ||
| 51 | |||
| 52 | #endif | 46 | #endif |
