summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/img-ir-rev1.txt
diff options
context:
space:
mode:
authorJames Hogan2014-03-01 00:17:06 +0100
committerMauro Carvalho Chehab2014-03-11 17:29:52 +0100
commit6bea25af147fcddcd8fd4557f4184c847c5c6ffd (patch)
tree8f8e23c1620078ced4c1e7e9d87fac7a035ff700 /Documentation/devicetree/bindings/media/img-ir-rev1.txt
parent[media] rc: add wakeup_protocols sysfs file (diff)
downloadkernel-qcow2-linux-6bea25af147fcddcd8fd4557f4184c847c5c6ffd.tar.gz
kernel-qcow2-linux-6bea25af147fcddcd8fd4557f4184c847c5c6ffd.tar.xz
kernel-qcow2-linux-6bea25af147fcddcd8fd4557f4184c847c5c6ffd.zip
[media] rc-main: automatically refresh filter on protocol change
When either of the normal or wakeup filter protocols are changed, refresh the corresponding scancode filter, i.e. try and set the same scancode filter with the new protocol. If that fails clear the filter instead. If no protocol was selected the filter is just cleared, and if no s_filter callback exists the filter is left unmodified. Similarly clear the filter mask when the filter is set if no protocol is currently selected. This simplifies driver code which no longer has to explicitly worry about modifying the filter on a protocol change. This also allows the change_wakeup_protocol callback to be omitted entirely if there is only a single available wakeup protocol at a time, since selecting no protocol will automatically clear the wakeup filter, disabling wakeup. Signed-off-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Antti Seppälä <a.seppala@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/media/img-ir-rev1.txt')
0 files changed, 0 insertions, 0 deletions