mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
V4L/DVB (13635): ir-core: Implement protocol table type reading
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
e93854da88
commit
53f870228d
2 changed files with 31 additions and 3 deletions
|
|
@ -44,9 +44,10 @@ struct ir_scancode_table {
|
|||
struct ir_dev_props {
|
||||
unsigned long allowed_protos;
|
||||
void *priv;
|
||||
int (*change_protocol)(void *priv, unsigned long protocol);
|
||||
int (*change_protocol)(void *priv, enum ir_type ir_type);
|
||||
};
|
||||
|
||||
|
||||
struct ir_input_dev {
|
||||
struct input_dev *dev; /* Input device*/
|
||||
struct ir_scancode_table rc_tab; /* scan/key table */
|
||||
|
|
@ -55,6 +56,7 @@ struct ir_input_dev {
|
|||
struct device *class_dev; /* virtual class dev */
|
||||
const struct ir_dev_props *props; /* Device properties */
|
||||
};
|
||||
#define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr)
|
||||
|
||||
/* Routines from ir-keytable.c */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue