aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-20 17:50:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:57:43 -0400
commit384f23e8c9b189888d6d8c84ae5ebd23b074a0b6 (patch)
tree8289540754f092b271d431bc1aa655080d694378
parente40b1127f994a427568319d1be9b9e5ab1f58dd1 (diff)
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>
-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 {
36}; 36};
37 37
38/* macros for IR decoders */ 38/* macros for IR decoders */
39static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin) { 39static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin)
40{
40 return d1 > (d2 - margin); 41 return d1 > (d2 - margin);
41} 42}
42 43
43static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin) { 44static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin)
45{
44 return ((d1 > (d2 - margin)) && (d1 < (d2 + margin))); 46 return ((d1 > (d2 - margin)) && (d1 < (d2 + margin)));
45} 47}
46 48
47static inline bool is_transition(struct ir_raw_event *x, struct ir_raw_event *y) { 49static inline bool is_transition(struct ir_raw_event *x, struct ir_raw_event *y)
50{
48 return x->pulse != y->pulse; 51 return x->pulse != y->pulse;
49} 52}
50 53
51static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) { 54static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration)
55{
52 if (duration > ev->duration) 56 if (duration > ev->duration)
53 ev->duration = 0; 57 ev->duration = 0;
54 else 58 else