extcon: fix typos in comments
Subsystems (2)
PATCH 1/1 extcon: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- 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(-)
drivers/extcon/devres.c +3 -3
@@ -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)
drivers/extcon/extcon-intel-cht-wc.c +2 -2
@@ -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 :
drivers/extcon/extcon-max77693.c +2 -2
@@ -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. */
Signature · 1 line
2.48.1
Quoted 26 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- 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(-)drivers/extcon/devres.c +1
-1@@ -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) {
drivers/extcon/devres.c EXPORT_SYMBOL_GPL(devm_extcon_dev_unregister); · line 168
Quoted 2 lines
drivers/extcon/devres.c +0
-0@@ -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.
Quoted 59 lines
drivers/extcon/devres.c +2
-2* -* 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)drivers/extcon/extcon-intel-cht-wc.c +2
-2@@ -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 :drivers/extcon/extcon-max77693.c +2
-2@@ -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. */
Signature · 3 lines
Best Regards, Chanwoo Choi Principal Engineer, Samsung Electronics