From: Chanwoo Choi <cwchoi00@gmail.com>
To: Hemanth Selam <hemanth.selam@gmail.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] extcon: fix typos in comments
Date: Sat, 28 Nov 2026 08:18:05 +0900 [thread overview]
Message-ID: <9f51b843-148d-44f9-8910-79cb9091f17c@gmail.com> (raw)
In-Reply-To: <20260904110622.16766-1-hemanth.selam@gmail.com>
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
prev parent reply other threads:[~2026-11-27 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 11:06 Hemanth Selam
2026-11-27 23:18 ` Chanwoo Choi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f51b843-148d-44f9-8910-79cb9091f17c@gmail.com \
--to=cwchoi00@gmail.com \
--cc=chanwoo@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=hemanth.selam@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®