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)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 10 Feb 2016 13:19:21 +0000 (14:19 +0100)
commit4cacf91fcb1d7118e93caf9cb6651d7f7b56e58d
tree030f15e5a6219d14a86c3d4aa390a39f2f8352df
parent316e376b658f67cd63351a55093ac5038637a330
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.

Suggested-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/drm_of.c
include/drm/drm_of.h