lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240930080124.626058-1-yanzhen@vivo.com>
Date: Mon, 30 Sep 2024 16:01:24 +0800
From: Yan Zhen <yanzhen@...o.com>
To: myungjoo.ham@...sung.com,
	cw00.choi@...sung.com
Cc: linux-kernel@...r.kernel.org,
	opensource.kernel@...o.com,
	Yan Zhen <yanzhen@...o.com>
Subject: [PATCH v1] extcon: Fix typos in the comments

Correctly spelled comments make it easier for the reader to understand
the code.

Fix typos:
'negaive' ==> 'negative',
'varity' ==> 'variety',
'reigster' ==> 'register',
'drvier' ==> 'driver',
'funciton' ==> 'function',
'simulataneously' ==> 'simultaneously'.

Signed-off-by: Yan Zhen <yanzhen@...o.com>
---
 drivers/extcon/devres.c         | 6 +++---
 drivers/extcon/extcon-max8997.c | 2 +-
 drivers/extcon/extcon-rt8973a.c | 2 +-
 drivers/extcon/extcon-sm5502.c  | 2 +-
 drivers/extcon/extcon.c         | 2 +-
 drivers/extcon/extcon.h         | 2 +-
 6 files changed, 8 insertions(+), 8 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-max8997.c b/drivers/extcon/extcon-max8997.c
index 9cddf08e0696..475c51af2f7c 100644
--- a/drivers/extcon/extcon-max8997.c
+++ b/drivers/extcon/extcon-max8997.c
@@ -190,7 +190,7 @@ static int max8997_muic_set_debounce_time(struct max8997_muic_info *info,
  * @value: the path according to attached cable
  * @attached: the state of cable (true:attached, false:detached)
  *
- * The max8997 MUIC device share outside H/W line among a varity of cables,
+ * The max8997 MUIC device share outside H/W line among a variety of cables,
  * so this function set internal path of H/W line according to the type of
  * attached cable.
  */
diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973a.c
index 19bb49f13fb0..0a0d99b06005 100644
--- a/drivers/extcon/extcon-rt8973a.c
+++ b/drivers/extcon/extcon-rt8973a.c
@@ -269,7 +269,7 @@ static int rt8973a_muic_get_cable_type(struct rt8973a_muic_info *info)
 	}
 	cable_type = adc & RT8973A_REG_ADC_MASK;
 
-	/* Read Device 1 reigster to identify correct cable type */
+	/* Read Device 1 register to identify correct cable type */
 	ret = regmap_read(info->regmap, RT8973A_REG_DEV1, &dev1);
 	if (ret) {
 		dev_err(info->dev, "failed to read DEV1 register\n");
diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon/extcon-sm5502.c
index c8c4b9ef72aa..6321b427781e 100644
--- a/drivers/extcon/extcon-sm5502.c
+++ b/drivers/extcon/extcon-sm5502.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
- * extcon-sm5502.c - Silicon Mitus SM5502 extcon drvier to support USB switches
+ * extcon-sm5502.c - Silicon Mitus SM5502 extcon driver to support USB switches
  *
  * Copyright (c) 2014 Samsung Electronics Co., Ltd
  * Author: Chanwoo Choi <cw00.choi@...sung.com>
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index e7f55c021e56..b84068dd9fc0 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -1238,7 +1238,7 @@ static int extcon_alloc_groups(struct extcon_dev *edev)
  * do not set the values of "internal data", which are initialized by
  * this function.
  *
- * Note that before calling this funciton, have to allocate the memory
+ * Note that before calling this function, have to allocate the memory
  * of an extcon device by using the extcon_dev_allocate(). And the extcon
  * dev should include the supported_cable information.
  *
diff --git a/drivers/extcon/extcon.h b/drivers/extcon/extcon.h
index 946182687786..a920328ae58f 100644
--- a/drivers/extcon/extcon.h
+++ b/drivers/extcon/extcon.h
@@ -16,7 +16,7 @@
  *			ending with 0 or be NULL (no mutually exclusive cables).
  *			For example, if it is {0x7, 0x30, 0}, then,
  *			{0, 1}, {0, 1, 2}, {0, 2}, {1, 2}, or {4, 5} cannot
- *			be attached simulataneously. {0x7, 0} is equivalent to
+ *			be attached simultaneously. {0x7, 0} is equivalent to
  *			{0x3, 0x6, 0x5, 0}. If it is {0xFFFFFFFF, 0}, there
  *			can be no simultaneous connections.
  * @dev:		Device of this extcon.
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ