OSDN Git Service

drm: exynos: exynos_hdmi: use cec_notifier_conn_(un)register
authorDariusz Marcinkiewicz <darekm@google.com>
Wed, 28 Aug 2019 12:34:15 +0000 (14:34 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 9 Sep 2019 09:57:01 +0000 (11:57 +0200)
commit71137bfd98973efb7b762ba168df077b87b34311
tree43819b7e3d48a6417a3386aa01206f402e04164b
parent7ac1573e263f231ab8b88b9d9fcbcd28a3af2869
drm: exynos: exynos_hdmi: use cec_notifier_conn_(un)register

Use the new cec_notifier_conn_(un)register() functions to
(un)register the notifier for the HDMI connector, and fill in
the cec_connector_info.

Changes since v7:
- err_runtime_disable -> err_rpm_disable
Changes since v2:
- removed unnecessary call to invalidate phys address before
deregistering the notifier,
- use cec_notifier_phys_addr_invalidate instead of setting
invalid address on a notifier.

Signed-off-by: Dariusz Marcinkiewicz <darekm@google.com>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: use 'if (!hdata->notifier)' instead of '== NULL']
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828123415.139441-1-darekm@google.com
drivers/gpu/drm/exynos/exynos_hdmi.c