Commit 384f23e8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e40b1127
...@@ -36,19 +36,23 @@ struct ir_raw_event_ctrl { ...@@ -36,19 +36,23 @@ struct ir_raw_event_ctrl {
}; };
/* macros for IR decoders */ /* 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); 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))); 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; 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) if (duration > ev->duration)
ev->duration = 0; ev->duration = 0;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment