disp: msm: dp: change the detect callback to detect_ctx
The connector detect function is currently implemented as a callback from the framework, and creates a context before calling the detect_port_ctx MST callback. This change updates the callflow so that the framework calls the new detect_ctx function in the MST case. This removes the need for creating a new context before calling further downstream functions. In addition, references to the mst_connector_get_info function were replaced by connector_get_info to avoid redundancy. Change-Id: I224d09e77fad4b6925a42b1bc912a05e3e4d060a Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
This commit is contained in:
@@ -60,6 +60,19 @@ struct sde_connector_ops {
|
||||
bool force,
|
||||
void *display);
|
||||
|
||||
/**
|
||||
* detect_ctx - determine if connector is connected
|
||||
* @connector: Pointer to drm connector structure
|
||||
* @ctx: Pointer to drm modeset acquire context structure
|
||||
* @force: Force detect setting from drm framework
|
||||
* @display: Pointer to private display handle
|
||||
* Returns: Connector 'is connected' status
|
||||
*/
|
||||
int (*detect_ctx)(struct drm_connector *connector,
|
||||
struct drm_modeset_acquire_ctx *ctx,
|
||||
bool force,
|
||||
void *display);
|
||||
|
||||
/**
|
||||
* get_modes - add drm modes via drm_mode_probed_add()
|
||||
* @connector: Pointer to drm connector structure
|
||||
|
مرجع در شماره جدید
Block a user