]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-notifier: add cec_notifier_parse_hdmi_phandle helper
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2019 09:13:28 +0000 (05:13 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 17:09:59 +0000 (13:09 -0400)
commit564625dfbd79e890a8ef80b34202ac4297ae3724
tree94f01897c4aa8eb2e9b13eb813c81a1ec234ccf0
parent84335f7ddde14425ff47af2c1deb383bbffed122
media: cec-notifier: add cec_notifier_parse_hdmi_phandle helper

Add helper function to parse the DT for the hdmi-phandle property
and return the corresponding struct device pointer.

It takes care to avoid increasing the device refcount since all
we need is the device pointer. This pointer is used in the
notifier list as a key, but it is never accessed by the CEC driver.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Wen Yang <wen.yang99@zte.com.cn>
Acked-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-notifier.c
include/media/cec-notifier.h