]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-notifier: small improvements
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Jul 2017 12:32:56 +0000 (09:32 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 09:46:44 +0000 (05:46 -0400)
commit31b935cca2f56900284e4b5328d0c12a6b79cca3
tree0eba84919fe75c472cb44ad97159f5c8b502190d
parentbc4be35bc8b281b59d329f79ee6357bef123bd21
media: cec-notifier: small improvements

Allow calling cec_notifier_set_phys_addr and
cec_notifier_set_phys_addr_from_edid with a NULL notifier, in which
case these functions do nothing.

Add a cec_notifier_phys_addr_invalidate helper function (the notifier
equivalent of cec_phys_addr_invalidate).

These changes simplify drm CEC driver support.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-notifier.c
include/media/cec-notifier.h