extcon: Fix typos in the comments
PATCH 1/1 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 <[email protected]>
--- 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(-)
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-max8997.c +1 -1
@@ -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. */
drivers/extcon/extcon-rt8973a.c +1 -1
@@ -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" );
drivers/extcon/extcon-sm5502.c +1 -1
@@ -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 <[email protected]>
drivers/extcon/extcon.c +1 -1
@@ -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. *
drivers/extcon/extcon.h +1 -1
@@ -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.
Signature · 1 line
2.34.1