usb: typec: Fix typo in comment
authorYu Jiaoliang <yujiaoliang@vivo.com>
Thu, 19 Sep 2024 01:46:26 +0000 (09:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 13:08:45 +0000 (15:08 +0200)
Fix typos:
reseet->reset,
reaach->reach,
compatiple->compatible.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240919014646.1635774-1-yujiaoliang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c
drivers/usb/typec/tcpm/tcpm.c

index 92cc1b13612084198fce715c6af317906f0599a5..2f03190a9873acd52dd7703965a10d3e16aa4e28 100644 (file)
@@ -729,7 +729,7 @@ int dp_altmode_probe(struct typec_altmode *alt)
 
        /* FIXME: Port can only be DFP_U. */
 
-       /* Make sure we have compatiple pin configurations */
+       /* Make sure we have compatible pin configurations */
        if (!(DP_CAP_PIN_ASSIGN_DFP_D(port->vdo) &
              DP_CAP_PIN_ASSIGN_UFP_D(alt->vdo)) &&
            !(DP_CAP_PIN_ASSIGN_UFP_D(port->vdo) &
index fc619478200f5dc87f9f5a03ab6d28128296ccc2..b6486beda6ab0200f8ce97eb34beb6f539b433e6 100644 (file)
@@ -5270,7 +5270,7 @@ static void run_state_machine(struct tcpm_port *port)
                tcpm_set_state(port, SRC_UNATTACHED, PD_T_PS_SOURCE_ON);
                break;
        case SNK_HARD_RESET_SINK_OFF:
-               /* Do not discharge/disconnect during hard reseet */
+               /* Do not discharge/disconnect during hard reset */
                tcpm_set_auto_vbus_discharge_threshold(port, TYPEC_PWR_MODE_USB, false, 0);
                memset(&port->pps_data, 0, sizeof(port->pps_data));
                tcpm_set_vconn(port, false);
@@ -6066,7 +6066,7 @@ static void _tcpm_pd_vbus_off(struct tcpm_port *port)
                break;
        case SNK_ATTACH_WAIT:
        case SNK_DEBOUNCED:
-               /* Do nothing, as TCPM is still waiting for vbus to reaach VSAFE5V to connect */
+               /* Do nothing, as TCPM is still waiting for vbus to reach VSAFE5V to connect */
                break;
 
        case SNK_NEGOTIATE_CAPABILITIES: