Driver for fusb302 does not support alternate modes, so the
connection is not really needed for now. Removing that
connection description allows us to improve the USB Type-C
mux API.

Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com>
---
 drivers/platform/x86/intel_cht_int33fe.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/drivers/platform/x86/intel_cht_int33fe.c 
b/drivers/platform/x86/intel_cht_int33fe.c
index 02bc74608cf3..fbd24daa7f8d 100644
--- a/drivers/platform/x86/intel_cht_int33fe.c
+++ b/drivers/platform/x86/intel_cht_int33fe.c
@@ -32,7 +32,7 @@ struct cht_int33fe_data {
        struct i2c_client *fusb302;
        struct i2c_client *pi3usb30532;
        /* Contain a list-head must be per device */
-       struct device_connection connections[5];
+       struct device_connection connections[4];
 };
 
 /*
@@ -178,12 +178,9 @@ static int cht_int33fe_probe(struct platform_device *pdev)
        data->connections[1].endpoint[0] = "port0";
        data->connections[1].endpoint[1] = "i2c-pi3usb30532";
        data->connections[1].id = "typec-mux";
-       data->connections[2].endpoint[0] = "port0";
-       data->connections[2].endpoint[1] = "i2c-pi3usb30532";
-       data->connections[2].id = "idff01m01";
-       data->connections[3].endpoint[0] = "i2c-fusb302";
-       data->connections[3].endpoint[1] = "intel_xhci_usb_sw-role-switch";
-       data->connections[3].id = "usb-role-switch";
+       data->connections[2].endpoint[0] = "i2c-fusb302";
+       data->connections[2].endpoint[1] = "intel_xhci_usb_sw-role-switch";
+       data->connections[2].id = "usb-role-switch";
 
        device_connections_add(data->connections);
 
-- 
2.20.1

Reply via email to