disp: msm: dp: use the new altmode framework

Use the new altmode framework to receive the connect, disconnect
and attention events.

Change-Id: Ic542525b526e1abd0f153c293bca6e4cdbb6bf0b
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Этот коммит содержится в:
Tatenda Chipeperekwa
2020-01-17 12:25:06 -08:00
родитель 37412f5add
Коммит 4571b23507
12 изменённых файлов: 433 добавлений и 25 удалений

Просмотреть файл

@@ -11,7 +11,6 @@
#include <linux/of_irq.h>
#include <linux/extcon.h>
#include <linux/soc/qcom/fsa4480-i2c.h>
#include <linux/usb/usbpd.h>
#include "sde_connector.h"
@@ -1539,10 +1538,12 @@ static int dp_init_sub_modules(struct dp_display_private *dp)
dp_display_get_usb_extcon(dp);
rc = dp->hpd->register_hpd(dp->hpd);
if (rc) {
DP_ERR("failed register hpd\n");
goto error_hpd_reg;
if (dp->hpd->register_hpd) {
rc = dp->hpd->register_hpd(dp->hpd);
if (rc) {
DP_ERR("failed register hpd\n");
goto error_hpd_reg;
}
}
return rc;