]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Create a helper to check if there is a connected device
authorArchit Taneja <architt@codeaurora.org>
Mon, 3 Aug 2015 08:38:33 +0000 (14:08 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:25 +0000 (18:27 -0400)
commitd9ddf0e1e1776603030d5145ebf233a5b67b40d8
tree37a06232ced891f48d3cbf8a87b04bed102d997c
parentc27e9d2c2b8f25681d2690c5acb6da4206a638e6
drm/msm/dsi: Create a helper to check if there is a connected device

Create a helper msm_dsi_device_connected() which checks whether we have a
device connected to the dsi host or not. This check gets messy when we
have support external bridges too. Having an inline function makes it
more legible.

For now, the check only consists of msm_dsi->panel being non-NULL. Later,
this will check if we have an external bridge or not.

This helper isn't used in dsi_connector related code as that's specific
to only when a drm_panel is connected.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi.c
drivers/gpu/drm/msm/dsi/dsi.h
drivers/gpu/drm/msm/dsi/dsi_manager.c