diff options
author | David Härdeman <david@hardeman.nu> | 2015-05-19 18:03:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-07-06 07:26:15 -0400 |
commit | fcb13097867757d360d5226d36ed3ffe849dc3ae (patch) | |
tree | 23404ba90bcf2895232f877321d26c84abccb121 /include/media | |
parent | a66b0c41ad277ae62a3ae6ac430a71882f899557 (diff) |
[media] rc-core: use an IDA rather than a bitmap
This patch changes rc-core to use the kernel facilities that are already
available for handling unique numbers instead of rolling its own bitmap
stuff.
Signed-off-by: David Härdeman <david@hardeman.nu>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/rc-core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index 45534da57759..5642fbea886e 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h | |||
@@ -69,7 +69,7 @@ enum rc_filter_type { | |||
69 | * @rc_map: current scan/key table | 69 | * @rc_map: current scan/key table |
70 | * @lock: used to ensure we've filled in all protocol details before | 70 | * @lock: used to ensure we've filled in all protocol details before |
71 | * anyone can call show_protocols or store_protocols | 71 | * anyone can call show_protocols or store_protocols |
72 | * @devno: unique remote control device number | 72 | * @minor: unique minor remote control device number |
73 | * @raw: additional data for raw pulse/space devices | 73 | * @raw: additional data for raw pulse/space devices |
74 | * @input_dev: the input child device used to communicate events to userspace | 74 | * @input_dev: the input child device used to communicate events to userspace |
75 | * @driver_type: specifies if protocol decoding is done in hardware or software | 75 | * @driver_type: specifies if protocol decoding is done in hardware or software |
@@ -131,7 +131,7 @@ struct rc_dev { | |||
131 | const char *map_name; | 131 | const char *map_name; |
132 | struct rc_map rc_map; | 132 | struct rc_map rc_map; |
133 | struct mutex lock; | 133 | struct mutex lock; |
134 | unsigned long devno; | 134 | unsigned int minor; |
135 | struct ir_raw_event_ctrl *raw; | 135 | struct ir_raw_event_ctrl *raw; |
136 | struct input_dev *input_dev; | 136 | struct input_dev *input_dev; |
137 | enum rc_driver_type driver_type; | 137 | enum rc_driver_type driver_type; |