summaryrefslogtreecommitdiff
path: root/drivers/media/rc/rc-core-priv.h
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-09-27 16:00:49 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-14 10:35:17 -0500
commit49a4b36ada336270b564cabbbcb727cadebd024d (patch)
tree0b0fe663da36137ed5f84a90d86df035dce0b657 /drivers/media/rc/rc-core-priv.h
parenta60d64b15c20d178ba3a9bc3a542492b4ddeea70 (diff)
media: lirc: validate scancode for transmit
Ensure we reject an attempt to transmit invalid scancodes. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/rc-core-priv.h')
-rw-r--r--drivers/media/rc/rc-core-priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h
index face39c3a96c..6d5a36b8b550 100644
--- a/drivers/media/rc/rc-core-priv.h
+++ b/drivers/media/rc/rc-core-priv.h
@@ -150,6 +150,7 @@ static inline bool is_timing_event(struct ir_raw_event ev)
#define TO_STR(is_pulse) ((is_pulse) ? "pulse" : "space")
/* functions for IR encoders */
+bool rc_validate_scancode(enum rc_proto proto, u32 scancode);
static inline void init_ir_raw_event_duration(struct ir_raw_event *ev,
unsigned int pulse,