diff options
author | Sean Young | 2018-09-16 07:35:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-10-05 06:55:08 -0400 |
commit | 0ac5a603a732dda81de8e9b4ae67e79ba07bda55 (patch) | |
tree | 824114acfac7277e63075489e0dff46cc3834382 /drivers/media/rc/rc-main.c | |
parent | fec225a04330d0f222d24feb5bea045526031675 (diff) |
media: rc: imon: report mouse events using rc-core's input device
There is no need to create another input device.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r-- | drivers/media/rc/rc-main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 7e5a9bc9b81d..552bbe82a160 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -1743,12 +1743,18 @@ static int rc_prepare_rx_device(struct rc_dev *dev) dev->enabled_protocols = rc_proto; } + /* Keyboard events */ set_bit(EV_KEY, dev->input_dev->evbit); set_bit(EV_REP, dev->input_dev->evbit); set_bit(EV_MSC, dev->input_dev->evbit); set_bit(MSC_SCAN, dev->input_dev->mscbit); bitmap_fill(dev->input_dev->keybit, KEY_CNT); + /* Pointer/mouse events */ + set_bit(EV_REL, dev->input_dev->evbit); + set_bit(REL_X, dev->input_dev->relbit); + set_bit(REL_Y, dev->input_dev->relbit); + if (dev->open) dev->input_dev->open = ir_open; if (dev->close) |