[PATCH 21/22] usb: typec: fix a few spelling mistakes in comments
From: Shunbo Shi
Date: Tue Nov 10 2026 - 01:56:18 EST
No functional changes.
Signed-off-by: Shunbo Shi <shishunbo@xxxxxxxxxxxxxxxxxxxx>
---
drivers/usb/typec/class.c | 2 +-
drivers/usb/typec/tcpm/tcpm.c | 6 +++---
drivers/usb/typec/tipd/core.c | 2 +-
drivers/usb/typec/ucsi/displayport.c | 2 +-
drivers/usb/typec/ucsi/psy.c | 2 +-
drivers/usb/typec/ucsi/ucsi.h | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/usb/typec/class.c b/drivers/usb/typec/class.c
index 54c7810b563b..ea2564b9eff6 100644
--- a/drivers/usb/typec/class.c
+++ b/drivers/usb/typec/class.c
@@ -564,7 +564,7 @@ static const struct attribute_group *typec_altmode_groups[] = {
* @adev: Handle to the alternate mode
* @ops: Ops for the alternate mode
*
- * After setting ops, attribute visiblity needs to be refreshed if the alternate
+ * After setting ops, attribute visibility needs to be refreshed if the alternate
* mode can be activated.
*/
void typec_altmode_set_ops(struct typec_altmode *adev,
diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
index d721baef5210..dabb91319e8a 100644
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -2520,7 +2520,7 @@ static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev,
/*
* PD2.0 Spec 6.10.3: respond with NAK as DFP (data host)
* PD3.1 Spec 6.4.4.2.5.1: respond with NAK if "invalid field" or
- * "wrong configuation" or "Unrecognized"
+ * "wrong configuration" or "Unrecognized"
*/
if ((port->data_role == TYPEC_DEVICE || svdm_version >= SVDM_VER_2_0) &&
port->nr_snk_vdo) {
@@ -4461,7 +4461,7 @@ static int tcpm_pd_select_pdo(struct tcpm_port *port, int *sink_pdo,
/*
* Select the source PDO providing the most power which has a
- * matchig sink cap.
+ * matching sink cap.
*/
for (i = 0; i < port->nr_source_caps; i++) {
u32 pdo = port->source_caps[i];
@@ -5960,7 +5960,7 @@ static void run_state_machine(struct tcpm_port *port)
}
/*
* Although tAvsSrcTransSmall is expected to be used
- * for voltage transistions smaller than 1V, using
+ * for voltage transitions smaller than 1V, using
* tAvsSrcTransLarge to be resilient against chargers
* which strictly cannot honor tAvsSrcTransSmall to
* improve interoperability.
diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c
index 02539378ffed..67471c363a68 100644
--- a/drivers/usb/typec/tipd/core.c
+++ b/drivers/usb/typec/tipd/core.c
@@ -950,7 +950,7 @@ static irqreturn_t cd321x_interrupt(int irq, void *data)
if (!tps->data->read_data_status(tps))
goto err_unlock;
- /* Can be called uncondtionally since it will check for any changes itself */
+ /* Can be called unconditionally since it will check for any changes itself */
cd321x_connect(tps, status);
err_unlock:
diff --git a/drivers/usb/typec/ucsi/displayport.c b/drivers/usb/typec/ucsi/displayport.c
index 572da7bbd29c..56cf7deb2312 100644
--- a/drivers/usb/typec/ucsi/displayport.c
+++ b/drivers/usb/typec/ucsi/displayport.c
@@ -165,7 +165,7 @@ static int ucsi_displayport_status_update(struct ucsi_dp *dp)
dp->data.status = DP_STATUS_ENABLED;
/*
- * If pin assignement D is supported, claiming always
+ * If pin assignment D is supported, claiming always
* that Multi-function is preferred.
*/
if (DP_CAP_CAPABILITY(cap) & DP_CAP_UFP_D) {
diff --git a/drivers/usb/typec/ucsi/psy.c b/drivers/usb/typec/ucsi/psy.c
index c8ebab8ba7e7..8eb1ed42fbbd 100644
--- a/drivers/usb/typec/ucsi/psy.c
+++ b/drivers/usb/typec/ucsi/psy.c
@@ -255,7 +255,7 @@ static int ucsi_psy_get_charge_type(struct ucsi_connector *con, union power_supp
return 0;
}
- /* The Battery Charging Cabability Status field is only valid in sink role. */
+ /* The Battery Charging Capability Status field is only valid in sink role. */
if (UCSI_CONSTAT(con, PWR_DIR) != TYPEC_SINK) {
val->intval = POWER_SUPPLY_CHARGE_TYPE_UNKNOWN;
return 0;
diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h
index 1996f04ed5e6..d363e9a64763 100644
--- a/drivers/usb/typec/ucsi/ucsi.h
+++ b/drivers/usb/typec/ucsi/ucsi.h
@@ -509,7 +509,7 @@ struct ucsi {
#define UCSI_NO_PARTNER_PDOS BIT(0) /* Don't read partner's PDOs */
#define UCSI_DELAY_DEVICE_PDOS BIT(1) /* Reading PDOs fails until the parter is in PD mode */
-/* USB4 connection can imply that USB communcation is supported */
+/* USB4 connection can imply that USB communication is supported */
#define UCSI_USB4_IMPLIES_USB BIT(2)
};
--
2.53.0