summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/sir_ir.c
Commit message (Collapse)AuthorAgeFilesLines
* [media] sir_ir: annotate hardware config module parametersSean Young2017-06-131-2/+2
| | | | | | | | | This module was merged after commit 5a8fc6a3cebb ("Annotate hardware config module parameters in drivers/media/"), so add add the missing hardware annotations. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] sir_ir: remove init_chrdev and init_sir_ir functionsSean Young2017-06-061-36/+22Star
| | | | | | | | Inlining these functions into the probe function makes it much more readable. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] sir_ir: remove init_port and drop_port functionsSean Young2017-06-061-22/+5Star
| | | | | | | | These functions are too short and removing them makes the code more readable. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] sir_ir: use dev managed resourcesSean Young2017-06-061-6/+3Star
| | | | | | | | Several error paths do not free up resources. This simplifies the code and fixes this. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] sir_ir: attempt to free already free_irqSean Young2017-06-061-2/+2
| | | | | | | If the probe fails (e.g. port already in use), rmmod causes null deref. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] sir_ir: infinite loop in interrupt handlerSean Young2017-05-181-0/+6
| | | | | | | | | Since this driver does no detection of hardware, it might be used with a non-sir port. Escape out if we are spinning. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
* [media] rc: promote lirc_sir out of stagingSean Young2017-04-051-0/+438
Rename lirc_sir to sir_ir in the process. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>