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/mtouch.c | |
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/mtouch.c')
-rw-r--r-- | src/mtouch.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mtouch.c b/src/mtouch.c index 5cb84fe..f7ffb12 100644 --- a/src/mtouch.c +++ b/src/mtouch.c @@ -21,8 +21,6 @@ #include "mtouch.h" -/******************************************************/ - int configure_mtouch(struct MTouch *mt, int fd) { int rc = read_capabilities(&mt->caps, fd); @@ -32,8 +30,6 @@ int configure_mtouch(struct MTouch *mt, int fd) return 0; } -/******************************************************/ - int open_mtouch(struct MTouch *mt, int fd) { int rc; @@ -45,8 +41,6 @@ int open_mtouch(struct MTouch *mt, int fd) return rc; } -/******************************************************/ - int close_mtouch(struct MTouch *mt, int fd) { int rc; @@ -54,22 +48,16 @@ int close_mtouch(struct MTouch *mt, int fd) return rc; } -/******************************************************/ - -bool read_synchronized_event(struct MTouch *mt, int fd) +int read_synchronized_event(struct MTouch *mt, int fd) { - const struct input_event* ev; - while(ev = get_iobuf_event(&mt->buf, fd)) + const struct input_event *ev; + while (ev = get_iobuf_event(&mt->buf, fd)) if (read_hwdata(&mt->hw, ev)) - return 1; + return 1; return 0; } -/******************************************************/ - void parse_event(struct MTouch *mt) { modify_state(&mt->ns, &mt->hw, &mt->caps); } - -/******************************************************/ |