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/mtouch.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/mtouch.c') 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); } - -/******************************************************/ -- cgit v1.2.3