Signed-off-by: Kuninori Morimoto <[email protected]>
---
 drivers/extcon/extcon-rtk-type-c.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/extcon/extcon-rtk-type-c.c 
b/drivers/extcon/extcon-rtk-type-c.c
index 82b60b927e41..0c4ecc897a2f 100644
--- a/drivers/extcon/extcon-rtk-type-c.c
+++ b/drivers/extcon/extcon-rtk-type-c.c
@@ -647,12 +647,12 @@ static void host_device_switch(struct work_struct *work)
                        connector_detached(type_c, DISABLE_CC, 
USB_DR_MODE_PERIPHERAL);
        } else {
                dev_err(dev, "Error: IN unknown mode %d to %s at %s 
(cc_status=0x%x)\n",
-                       cc_mode, is_attach ? "attach" : "detach",
+                       cc_mode, str_attach_detach(is_attach),
                        at_cc1 ? "cc1" : "cc2", type_c->cc_status);
        }
        dev_info(dev, "Connection change OK: IN %s mode to %s at %s 
(cc_status=0x%x)\n",
                 cc_mode == IN_HOST_MODE ? "host" : "device",
-                is_attach ? "attach" : "detach",
+                str_attach_detach(is_attach),
                 at_cc1 ? "cc1" : "cc2", type_c->cc_status);
 }
 
@@ -671,7 +671,7 @@ static irqreturn_t type_c_detect_irq(int irq, void *__data)
                dev_dbg(dev, "%s: IN %s mode to %s (at %s interrupt) 
int_status=0x%x, cc_status=0x%x",
                        __func__,
                        type_c->cc_mode == IN_HOST_MODE ? "host" : "device",
-                       type_c->is_attach ? "attach" : "detach",
+                       str_attach_detach(type_c->is_attach),
                        type_c->at_cc1 ? "cc1" : "cc2",
                        type_c->int_status, type_c->cc_status);
 
-- 
2.43.0


Reply via email to