summaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-keytable.c
diff options
context:
space:
mode:
authorMaxim Levitsky2010-07-31 16:59:22 +0200
committerMauro Carvalho Chehab2010-08-09 04:43:00 +0200
commit4a702ebf61120906696f8366dd2be0653b1643e3 (patch)
treed83d2662edcf538ebcb6bac103bdcadbed430426 /drivers/media/IR/ir-keytable.c
parentV4L/DVB: IR: Allow not to compile keymaps in (diff)
downloadkernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.tar.gz
kernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.tar.xz
kernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.zip
V4L/DVB: IR: add helper function for hardware with small o/b buffer
Some ir input devices have small buffer, and interrupt the host each time it is full (or half full) Add a helper that automaticly handles timeouts, and also automaticly merges samples of same time (space-space) Such samples might be placed by hardware because size of sample in the buffer is small (a byte for example). Also remove constness from ir_dev_props, because it now contains timeout settings that driver might want to change Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-keytable.c')
-rw-r--r--drivers/media/IR/ir-keytable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c
index 15a0f192d413..411976d10f83 100644
--- a/drivers/media/IR/ir-keytable.c
+++ b/drivers/media/IR/ir-keytable.c
@@ -428,7 +428,7 @@ static void ir_close(struct input_dev *input_dev)
*/
int __ir_input_register(struct input_dev *input_dev,
const struct ir_scancode_table *rc_tab,
- const struct ir_dev_props *props,
+ struct ir_dev_props *props,
const char *driver_name)
{
struct ir_input_dev *ir_dev;