mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] extcon: fix typos in comments
@ 2026-09-04 11:06 Hemanth Selam
  2026-11-27 23:18 ` Chanwoo Choi
  0 siblings, 1 reply; 2+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:06 UTC (permalink / raw)
  To: MyungJoo Ham, Chanwoo Choi, Krzysztof Kozlowski; +Cc: linux-kernel

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 drivers/extcon/devres.c              | 6 +++---
 drivers/extcon/extcon-intel-cht-wc.c | 4 ++--
 drivers/extcon/extcon-max77693.c     | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/extcon/devres.c b/drivers/extcon/devres.c
index f9d52e8ec5cf..01da069ad4c9 100644
--- a/drivers/extcon/devres.c
+++ b/drivers/extcon/devres.c
@@ -113,7 +113,7 @@ EXPORT_SYMBOL_GPL(devm_extcon_dev_free);
  * If extcon device is registered with this function and the device needs to be
  * unregistered separately, devm_extcon_dev_unregister() should be used.
  *
- * Returns 0 if success or negaive error number if failure.
+ * Returns 0 if success or negative error number if failure.
  */
 int devm_extcon_dev_register(struct device *dev, struct extcon_dev *edev)
 {
@@ -167,7 +167,7 @@ EXPORT_SYMBOL_GPL(devm_extcon_dev_unregister);
  * "old_state", not the current state. The current state can be retrieved
  * by looking at the third pameter (edev pointer)'s state value.
  *
- * Returns 0 if success or negaive error number if failure.
+ * Returns 0 if success or negative error number if failure.
  */
 int devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev,
 				unsigned int id, struct notifier_block *nb)
@@ -223,7 +223,7 @@ EXPORT_SYMBOL(devm_extcon_unregister_notifier);
  * device resource management and simplify the control of unregistering
  * the notifier of extcon device. To get more information, refer that function.
  *
- * Returns 0 if success or negaive error number if failure.
+ * Returns 0 if success or negative error number if failure.
  */
 int devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev,
 				struct notifier_block *nb)
diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c
index 99a9dfc62e2b..0f2168150a98 100644
--- a/drivers/extcon/extcon-intel-cht-wc.c
+++ b/drivers/extcon/extcon-intel-cht-wc.c
@@ -145,7 +145,7 @@ static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext,
 	int ret, usbsrc, status;
 	unsigned long timeout;
 
-	/* Charger detection can take upto 600ms, wait 800ms max. */
+	/* Charger detection can take up to 600ms, wait 800ms max. */
 	timeout = jiffies + msecs_to_jiffies(800);
 	do {
 		ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc);
@@ -192,7 +192,7 @@ static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext,
 		return EXTCON_CHG_USB_CDP;
 	case CHT_WC_USBSRC_TYPE_DCP:
 	case CHT_WC_USBSRC_TYPE_DCP_EXTPHY:
-	case CHT_WC_USBSRC_TYPE_MHL: /* MHL2+ delivers upto 2A, treat as DCP */
+	case CHT_WC_USBSRC_TYPE_MHL: /* MHL2+ delivers up to 2A, treat as DCP */
 		ext->usb_type = POWER_SUPPLY_USB_TYPE_DCP;
 		return EXTCON_CHG_USB_DCP;
 	case CHT_WC_USBSRC_TYPE_ACA:
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 2c567e0b7b7f..2839f0c946c9 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -689,7 +689,7 @@ static int max77693_muic_adc_handler(struct max77693_muic_info *info)
 		 *
 		 * The MAX77693 MUIC device can detect total 34 cable type
 		 * except of charger cable and MUIC device didn't define
-		 * specfic role of cable in the range of from 0x01 to 0x12
+		 * specific role of cable in the range of from 0x01 to 0x12
 		 * of ADC value. So, can use/define cable with no role according
 		 * to schema of hardware board.
 		 */
@@ -708,7 +708,7 @@ static int max77693_muic_adc_handler(struct max77693_muic_info *info)
 		 *
 		 * The MAX77693 MUIC device can detect total 34 cable type
 		 * except of charger cable and MUIC device didn't define
-		 * specfic role of cable in the range of from 0x01 to 0x12
+		 * specific role of cable in the range of from 0x01 to 0x12
 		 * of ADC value. So, can use/define cable with no role according
 		 * to schema of hardware board.
 		 */
-- 
2.48.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] extcon: fix typos in comments
  2026-09-04 11:06 [PATCH] extcon: fix typos in comments Hemanth Selam
@ 2026-11-27 23:18 ` Chanwoo Choi
  0 siblings, 0 replies; 2+ messages in thread
From: Chanwoo Choi @ 2026-11-27 23:18 UTC (permalink / raw)
  To: Hemanth Selam, MyungJoo Ham, Chanwoo Choi, Krzysztof Kozlowski
  Cc: linux-kernel

On 9/4/2026 8:06 PM, Hemanth Selam wrote:
> Fix typos in comments, reported by scripts/checkpatch.pl using the
> misspelling list in scripts/spelling.txt.  Only touches comments, no code
> changes.
> 
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
> ---
>  drivers/extcon/devres.c              | 6 +++---
>  drivers/extcon/extcon-intel-cht-wc.c | 4 ++--
>  drivers/extcon/extcon-max77693.c     | 4 ++--
>  3 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/extcon/devres.c b/drivers/extcon/devres.c
> index f9d52e8ec5cf..01da069ad4c9 100644
> --- a/drivers/extcon/devres.c
> +++ b/drivers/extcon/devres.c
> @@ -113,7 +113,7 @@ EXPORT_SYMBOL_GPL(devm_extcon_dev_free);
>   * If extcon device is registered with this function and the device needs to be
>   * unregistered separately, devm_extcon_dev_unregister() should be used.
>   *
> - * Returns 0 if success or negaive error number if failure.
> + * Returns 0 if success or negative error number if failure.
>   */
>  int devm_extcon_dev_register(struct device *dev, struct extcon_dev *edev)
>  {
> @@ -167,7 +167,7 @@ EXPORT_SYMBOL_GPL(devm_extcon_dev_unregister);
>   * "old_state", not the current state. The current state can be retrieved
>   * by looking at the third pameter (edev pointer)'s state value.

Thanks for your fixup. you better to fix 'pameter -> parameter' together on this patch.

Also, there are remained typo. Could you please fix it together?
~/kernel/extcon$ git grep -n -e specfic -e negaive -e upto -e pameter -- drivers/extcon include/linux/extcon*
drivers/extcon/devres.c:168: * by looking at the third pameter (edev pointer)'s state value.
drivers/extcon/extcon.c:908: * the current state of an external connector and the third pameter
drivers/extcon/extcon.c:971: * the current state and the third pameter is the pointer of extcon device.


>   *
> - * Returns 0 if success or negaive error number if failure.
> + * Returns 0 if success or negative error number if failure.
>   */
>  int devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev,
>  				unsigned int id, struct notifier_block *nb)
> @@ -223,7 +223,7 @@ EXPORT_SYMBOL(devm_extcon_unregister_notifier);
>   * device resource management and simplify the control of unregistering
>   * the notifier of extcon device. To get more information, refer that function.
>   *
> - * Returns 0 if success or negaive error number if failure.
> + * Returns 0 if success or negative error number if failure.
>   */
>  int devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev,
>  				struct notifier_block *nb)
> diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c
> index 99a9dfc62e2b..0f2168150a98 100644
> --- a/drivers/extcon/extcon-intel-cht-wc.c
> +++ b/drivers/extcon/extcon-intel-cht-wc.c
> @@ -145,7 +145,7 @@ static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext,
>  	int ret, usbsrc, status;
>  	unsigned long timeout;
>  
> -	/* Charger detection can take upto 600ms, wait 800ms max. */
> +	/* Charger detection can take up to 600ms, wait 800ms max. */
>  	timeout = jiffies + msecs_to_jiffies(800);
>  	do {
>  		ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc);
> @@ -192,7 +192,7 @@ static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext,
>  		return EXTCON_CHG_USB_CDP;
>  	case CHT_WC_USBSRC_TYPE_DCP:
>  	case CHT_WC_USBSRC_TYPE_DCP_EXTPHY:
> -	case CHT_WC_USBSRC_TYPE_MHL: /* MHL2+ delivers upto 2A, treat as DCP */
> +	case CHT_WC_USBSRC_TYPE_MHL: /* MHL2+ delivers up to 2A, treat as DCP */
>  		ext->usb_type = POWER_SUPPLY_USB_TYPE_DCP;
>  		return EXTCON_CHG_USB_DCP;
>  	case CHT_WC_USBSRC_TYPE_ACA:
> diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
> index 2c567e0b7b7f..2839f0c946c9 100644
> --- a/drivers/extcon/extcon-max77693.c
> +++ b/drivers/extcon/extcon-max77693.c
> @@ -689,7 +689,7 @@ static int max77693_muic_adc_handler(struct max77693_muic_info *info)
>  		 *
>  		 * The MAX77693 MUIC device can detect total 34 cable type
>  		 * except of charger cable and MUIC device didn't define
> -		 * specfic role of cable in the range of from 0x01 to 0x12
> +		 * specific role of cable in the range of from 0x01 to 0x12
>  		 * of ADC value. So, can use/define cable with no role according
>  		 * to schema of hardware board.
>  		 */
> @@ -708,7 +708,7 @@ static int max77693_muic_adc_handler(struct max77693_muic_info *info)
>  		 *
>  		 * The MAX77693 MUIC device can detect total 34 cable type
>  		 * except of charger cable and MUIC device didn't define
> -		 * specfic role of cable in the range of from 0x01 to 0x12
> +		 * specific role of cable in the range of from 0x01 to 0x12
>  		 * of ADC value. So, can use/define cable with no role according
>  		 * to schema of hardware board.
>  		 */


-- 
Best Regards,
Chanwoo Choi
Principal Engineer, Samsung Electronics

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-27 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 11:06 [PATCH] extcon: fix typos in comments Hemanth Selam
2026-11-27 23:18 ` Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®