UPSTREAM: drm: add drm_of_encoder_active_endpoint helpers
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 24 Feb 2015 10:34:01 +0000 (11:34 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 28 Jun 2016 10:40:44 +0000 (18:40 +0800)
commit4534670757456b92036d8d16711345fe50b5bea0
tree02b2d87402723424c469f9a3767c4f0e4b6179bb
parent37d23cecaae6d67a1ff374677d32e50136c0d6aa
UPSTREAM: drm: add drm_of_encoder_active_endpoint helpers

This patch adds a helper to parse the encoder endpoint connected to the
encoder's crtc and two helpers to return its id and port id.

This can be used to determine input mux setting from endpoint or port ids.

Change-Id: I48eb7c66edb951af40085e4e388afbd5d4b2c77b
Suggested-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
(cherry pick from commit 4cacf91fcb1d7118e93caf9cb6651d7f7b56e58d)
drivers/gpu/drm/drm_of.c
include/drm/drm_of.h