summaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-core-priv.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2010-04-20 23:50:54 +0200
committerMauro Carvalho Chehab2010-05-19 17:57:43 +0200
commit384f23e8c9b189888d6d8c84ae5ebd23b074a0b6 (patch)
tree8289540754f092b271d431bc1aa655080d694378 /drivers/media/IR/ir-core-priv.h
parentV4L/DVB: ir-core: change duration to be coded as a u32 integer (diff)
downloadkernel-qcow2-linux-384f23e8c9b189888d6d8c84ae5ebd23b074a0b6.tar.gz
kernel-qcow2-linux-384f23e8c9b189888d6d8c84ae5ebd23b074a0b6.tar.xz
kernel-qcow2-linux-384f23e8c9b189888d6d8c84ae5ebd23b074a0b6.zip
V4L/DVB: ir-core-priv.h: Fix a few CodingStyle errors
As reported by checkpatch.pl: ERROR: open brace '{' following function declarations go on the next line +static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin) { ERROR: open brace '{' following function declarations go on the next line +static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin) { ERROR: open brace '{' following function declarations go on the next line +static inline bool is_transition(struct ir_raw_event *x, struct ir_raw_event *y) { Cc: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-core-priv.h')
-rw-r--r--drivers/media/IR/ir-core-priv.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/media/IR/ir-core-priv.h b/drivers/media/IR/ir-core-priv.h
index 77d0b94ede10..f965024385d8 100644
--- a/drivers/media/IR/ir-core-priv.h
+++ b/drivers/media/IR/ir-core-priv.h
@@ -36,19 +36,23 @@ struct ir_raw_event_ctrl {
};
/* macros for IR decoders */
-static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin) {
+static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin)
+{
return d1 > (d2 - margin);
}
-static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin) {
+static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin)
+{
return ((d1 > (d2 - margin)) && (d1 < (d2 + margin)));
}
-static inline bool is_transition(struct ir_raw_event *x, struct ir_raw_event *y) {
+static inline bool is_transition(struct ir_raw_event *x, struct ir_raw_event *y)
+{
return x->pulse != y->pulse;
}
-static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) {
+static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration)
+{
if (duration > ev->duration)
ev->duration = 0;
else