WSL2-Linux-Kernel/drivers/media/rc/img-ir
Sean Young 0751d33c27 [media] rc: change wakeup_protocols to list all protocol variants
For IR wakeup, a driver has to program the hardware to wakeup at a
specific IR sequence, so it makes no sense to allow multiple wakeup
protocols to be selected. In the same manner the sysfs interface only
allows one scancode to be provided.

In addition, we need to know the specific variant of the protocol.

In short, these changes are made to the wakeup_protocols sysfs entry:
 - list all the protocol variants rather than the protocol groups,
   e.g. "nec nec-x nec-32" rather than just "nec".
 - only allow one protocol variant to be selected rather than multiple
 - wakeup_filter can only be set once a protocol has been selected in
   wakeup_protocols.

This is an API change, however the only user of this API is the img-ir,
but the wakeup code was never merged to mainline, so it was never used.

Signed-off-by: Sean Young <sean@mess.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-01-30 12:15:12 -02:00
..
Kconfig [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
Makefile [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-core.c [media] rc: img-ir: fix error in parameters passed to irq_free() 2015-04-08 12:52:50 -03:00
img-ir-hw.c [media] rc: change wakeup_protocols to list all protocol variants 2017-01-30 12:15:12 -02:00
img-ir-hw.h [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-jvc.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-nec.c [media] rc: change wakeup_protocols to list all protocol variants 2017-01-30 12:15:12 -02:00
img-ir-raw.c [media] rc: img-ir: Expand copyright headers with GPL notices 2014-06-17 12:04:55 -03:00
img-ir-raw.h [media] rc: img-ir: Expand copyright headers with GPL notices 2014-06-17 12:04:55 -03:00
img-ir-rc5.c [media] rc: img-ir: add philips rc5 decoder module 2014-12-23 15:16:40 -02:00
img-ir-rc6.c [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-sanyo.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-sharp.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-sony.c [media] rc: change wakeup_protocols to list all protocol variants 2017-01-30 12:15:12 -02:00
img-ir.h [media] rc: img-ir: Add and enable sys clock for img-ir 2015-04-08 07:55:48 -03:00