From patchwork Mon Sep 30 02:29:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shen Lichuan X-Patchwork-Id: 13815336 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7567FCF6498 for ; Mon, 30 Sep 2024 02:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XpQTEDIXtNcrtAL5VhP0Uev5rSxdC5ldEl2/ba7Y0qQ=; b=nW5pDV+RTLBP6PKf4xAlbLBWkq NY8bTgzhgiaSt/gmdn8O8zzbAMEpAqh3tpTGzJzqX7QOHpfxVFR3jfGzpsaWNOYZdFdkafvewEV2v rdA94M+YEhjnv5YA7vwqkDH4VuNrUyBZAJcaX/XKQHeBHQWXi3k++yIV/wFs+fDw5xKAdZvVfS+Tp 2sXYM9qjjrhA3xf7mmAJqU9udVvsN4+tdcfg9a+wQ8Gj4mhq4PCjPxFdAaVt+jrBlTtHnhs6Hmr+p d+o1a8yOjCLxMnnH6altPW1egCoCMoOOeemK4+2+WWz/B5vxdHQb+ZEC4ZCj7qVtMLTULgkxfwt/t 0ywLOvTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sv6Bx-0000000Fj8s-1ZJ9; Mon, 30 Sep 2024 02:31:17 +0000 Received: from mail-tyzapc01on20606.outbound.protection.outlook.com ([2a01:111:f403:2011::606] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sv6Al-0000000Fj1V-1Get for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 02:30:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xd4kbGnViYhnAXT4KUXFN6AmdW/wuZN4QztUovN5DcZr59c1EEgNM0H75al8r7/6IVbqkyHjIa9HBfNbQz86xkzQusE3aSFv2HXmM2CG4uOOzvY6ZGVrd1RmdFVRye4upsR8UlYfp11VStZHaM504dKSMAAXqzsL5E7klO1XHbWlIcrRr02rzS9sXcURcKXXlH2T0dLqBwDdzqELwZ7HRca6CUucBHLEGRAj+9NSXOGy0oBhhPt4JxLwj9ON+5OJJE6u2Li8LjmwOZscopB9eIKbTjsEDdgmYzfcIJTYj8z4H6MIhFBgMFkJvkPlBddwGtbzqe7BRMehwLVDZZCQNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XpQTEDIXtNcrtAL5VhP0Uev5rSxdC5ldEl2/ba7Y0qQ=; b=pqlD/hrPOq7HB+wYUzFplBbJTN53QG2Vjyp5hkUaXmBo/mDXJFggGnicYOZM5u8E/eQ9g/WckqM7guXOecBYePB6h2x5Vg5gMweQ/ScQqvMvWgLIpi9U6crZgwcFSFOnzAcBczQn2XA5FhUw7oyMP1B2Vfdeu308NQsj9MibQ0NXZRW4MWji9zU/gTrCSan7IOG2F5i8aP334T2pp3cXM7v/m8zcY9BOKlOJc1VSjO25SBceYWm6BOqmZ+5JOB6Hd1BtU35TkjpiFbnJrSmIA6VvTtecuwUQeMFftVuCPwvFTerrIbLZtYQPf4kuCh5NewfxZJhBlbuVWD2g4c1pAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XpQTEDIXtNcrtAL5VhP0Uev5rSxdC5ldEl2/ba7Y0qQ=; b=hA1wp1yl/9VA7yeJI8FtzwUKvcw9PsSG1xStMhtJCbkBdvRvDDeIUrADBjaEB0jZ5jj7aprCSYlrZZzZXB+xoUME0AM5RNZ3XdAxqID8d+yzl8kI5ZsPHKvTxvwevuRmuAqtJgmFdYj+nyAwTLclPoOS8fDlj+M61jyw/rSZILW/T/BqlF85wsu8sL02yJlGFtlvZvIW277od6ajh3GERU/J9lX02PndKu3nlMytSDG16nTKvaBmrnWBFlXCYjyy1VugA6+oIK+vMZ4WBm1kSOyumKjl6Qc1O3PqIz0ulGBiW/vi9a/ttw0L18GqVS1Z+UkHbR6tA2senyInG/8yIg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5899.apcprd06.prod.outlook.com (2603:1096:101:e3::16) by TY0PR06MB5530.apcprd06.prod.outlook.com (2603:1096:400:27a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 02:29:47 +0000 Received: from SEZPR06MB5899.apcprd06.prod.outlook.com ([fe80::8bfc:f1ee:8923:77ce]) by SEZPR06MB5899.apcprd06.prod.outlook.com ([fe80::8bfc:f1ee:8923:77ce%6]) with mapi id 15.20.8005.020; Mon, 30 Sep 2024 02:29:47 +0000 From: Shen Lichuan To: srinivas.kandagatla@linaro.org, vz@mleia.com, claudiu.beznea@tuxon.dev Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, opensource.kernel@vivo.com, Shen Lichuan Subject: [PATCH v1] nvmem: Correct some typos in comments Date: Mon, 30 Sep 2024 10:29:22 +0800 Message-Id: <20240930022922.7369-1-shenlichuan@vivo.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: TYAPR01CA0057.jpnprd01.prod.outlook.com (2603:1096:404:2b::21) To SEZPR06MB5899.apcprd06.prod.outlook.com (2603:1096:101:e3::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5899:EE_|TY0PR06MB5530:EE_ X-MS-Office365-Filtering-Correlation-Id: 4407ea91-6e60-49ab-d57f-08dce0f7c0ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: QeIvnov9TGSQrJoE+UszYC1DpoBxfImLPo2DruF81nW8Ks2JLwRlLDaWzGOb0P6TbLsZWRMy1W9v7nmE2W8qaFI+imQUK69GNzf4DlqIH+laeXv75Z2CK33wmP3pbS1irWZrF7HSFHLfh+AM8ZXUdWV3Gzx/J8vxySSetF1oNl4BY4+ZBYpwqupFhq+W2OfCYqeq2IOmjjGM0Ilf/yLPxbpeLsXWIWTI3t5gOyKanww/ffEr2PIOHliZ/NduGZ53Q5wfwcvXNLdjgD+6bA2WBJk82sYzRIW6MS6hM3EiKxWHREMe9G5saYri6hZiKEn79Lw0MlZziRyQ8fGKT5qYpsmX1ul9aZ5AORmmsVlJSi3HkgHk+s1QcPnq3W49PwwXwonlw9z06bns14OJw4W2UvvCLhVRDhfFw/oS8w0YnoaMK0/WuWhFZB8j5FXMWQgWBGtP3cXF2KQA5KVRMqAaLaCloYj13OBmYf8/pLi0QL6uWO7EBLMOYHkvOPblRIKdxI32M/jMnLPE/5VF1sk+48Ppxlmg/BYIrLaRMw+RaIBWLeR/JqDGAQIuYdBn4D/irYZdruA967iGF2ap0exYsH4i9O6jG9ZfR81piRHeQGmzh00PR2I6VHq84hY7OY0+CgOY6nRROPVHGstsB72Ixs93Aelu1vcIumS4rUlTSIrOpKu18A82BoRcnXuYX/Mx3EuVnZjBp0vzm2Z9yTXAc3V1B7+0OPM5HBVuWLhuX/MJQbgaQAUO1TL6Lgb84sAUYlSPe0zO/T49CROqoyjCzc70Z+0BPxZGPFJ/00ivbGpIaw+ASSdtx3waQS4CyPuim/u6aPvCAKoky540wt7Q173Xiha+x8Co0e3MO1fkE7v2vtrwSfjxuX+xn9+ZbSnI0bfO460H6NlyFJb6krnKlJut4TMYZxM0VdVYHkJFfrPXcQCZljkVdacg/ljZBbdbfxtOYj46CSrHqDiUst/yjysX9jHqYJrVfghbisHoINAF6HQ+ZX/GjUeviDdeW98ywRGo5ajds7fjhxHwvM4NttXXxQzY8RJIlfcr417oOK2V9dm/IJFIzMpeqPaAY5s9O+CXU2eypZGJt+guWBQWHRUuRnvuzGqImhS1NQwWY6KaI0z3Z9IFzP9D3ygAOVJBbe2ZWIckmwVyWU6Wxx3bJ8iK0FITkIHRyw1CYD8DPlCKFtgsBw+aMjFc7Nyt//66A7gl9om/4FlrRfQ/ZRJv113kuT7iDxK4Jt2aXYs2/H4w7pgZwu5tuYtYVj2kov1myUYQfS/9AZJcHIm54kKny0DtaO2BPfPwMngX1rz/7RZxsxGV+Ay/ca8HgfWqeodgicSnhGhLLEpUPFsRxctKIw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5899.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData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42YVrfCWHX8tarvOvhVR6j4soeG4nenEWE8GTR27UAt9NUMizvZafeQ+ZeXnzCQJ4MVZS0sEmJxt4s0v8f2FpoHyTPUCCNDeHhyFIxagqwMFRrttk1PCgrDnTg3z7+ftG4qJIK8y+dmFhnFs4e04UPNBjqKSKFahmHVZCIDBMGV2CeRhI+fgSOTd8BZ1+UErZJxrie+62iaX9rNJNkpYP3uODmnAu2/aA4kR5Mk84mo5/guU61gG7DY2LODyHKFMuGJt3ZeyEzMh8/uDdvy/Daxqu1JMzbCGD9TtDO0o8oTfTf/TLXTlrzUJ/lojcHmBDc/pWx/DZzKdsqTPesxibJO+oGnq5eRRXbS/lO6SzpKmemCcr6RXWQ+ExpdJY4y49bKHIKO+6JmrJQeRnYMjnqRAvEpJlJFBA2lqEHB8MGx2LfeoP/sC24hgANhm67HQ5dAyh2UHQkqMbbaO9tgFgNtDu4FSS3SPReU3GC1A85LSCRDooY1zVgdQZ/unxowLywN4k6RC748MBMLL/sB12CN7GyJAvp2o9lWyRYbYO+ypkP+ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4407ea91-6e60-49ab-d57f-08dce0f7c0ad X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5899.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 02:29:47.5790 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mFT8r1O3Oix3AooEaJ+EEy4zna6+GknxFnYUJug2l66gO1l7kF84pYNPggBl6m3ECfsnrLwUEADefgb2xcM3sQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5530 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_193003_376484_9A4FCB72 X-CRM114-Status: GOOD ( 15.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixed some confusing typos that were currently identified with codespell, the details are as follows: -in the code comments: drivers/nvmem/brcm_nvram.c:25: underlaying ==> underlying drivers/nvmem/core.c:1250: alredy ==> already drivers/nvmem/core.c:1268: alredy ==> already drivers/nvmem/lpc18xx_otp.c:24: reseverd ==> reserved drivers/nvmem/microchip-otpc.c:159: devide ==> divide Signed-off-by: Shen Lichuan Acked-by: Vladimir Zapolskiy --- drivers/nvmem/brcm_nvram.c | 2 +- drivers/nvmem/core.c | 4 ++-- drivers/nvmem/lpc18xx_otp.c | 2 +- drivers/nvmem/microchip-otpc.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/nvmem/brcm_nvram.c b/drivers/nvmem/brcm_nvram.c index 3d8c87835f4d..b810df727b44 100644 --- a/drivers/nvmem/brcm_nvram.c +++ b/drivers/nvmem/brcm_nvram.c @@ -22,7 +22,7 @@ * * @dev: NVMEM device pointer * @nvmem_size: Size of the whole space available for NVRAM - * @data: NVRAM data copy stored to avoid poking underlaying flash controller + * @data: NVRAM data copy stored to avoid poking underlying flash controller * @data_len: NVRAM data size * @padding_byte: Padding value used to fill remaining space * @cells: Array of discovered NVMEM cells diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 33ffa2aa4c11..66eec1960801 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -1247,7 +1247,7 @@ static void devm_nvmem_device_release(struct device *dev, void *res) } /** - * devm_nvmem_device_put() - put alredy got nvmem device + * devm_nvmem_device_put() - put already got nvmem device * * @dev: Device that uses the nvmem device. * @nvmem: pointer to nvmem device allocated by devm_nvmem_cell_get(), @@ -1265,7 +1265,7 @@ void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) EXPORT_SYMBOL_GPL(devm_nvmem_device_put); /** - * nvmem_device_put() - put alredy got nvmem device + * nvmem_device_put() - put already got nvmem device * * @nvmem: pointer to nvmem device that needs to be released. */ diff --git a/drivers/nvmem/lpc18xx_otp.c b/drivers/nvmem/lpc18xx_otp.c index adc9948e7b2e..c41a0c58bec7 100644 --- a/drivers/nvmem/lpc18xx_otp.c +++ b/drivers/nvmem/lpc18xx_otp.c @@ -21,7 +21,7 @@ * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts * at offset 0 from the base. * - * Bank 0 contains the part ID for Flashless devices and is reseverd for + * Bank 0 contains the part ID for Flashless devices and is reserved for * devices with Flash. * Bank 1/2 is generale purpose or AES key storage for secure devices. * Bank 3 contains control data, USB ID and generale purpose words. diff --git a/drivers/nvmem/microchip-otpc.c b/drivers/nvmem/microchip-otpc.c index 7cf81738a3e0..df979e8549fd 100644 --- a/drivers/nvmem/microchip-otpc.c +++ b/drivers/nvmem/microchip-otpc.c @@ -156,7 +156,7 @@ static int mchp_otpc_read(void *priv, unsigned int off, void *val, /* * We reach this point with off being multiple of stride = 4 to * be able to cross the subsystem. Inside the driver we use continuous - * unsigned integer numbers for packet id, thus devide off by 4 + * unsigned integer numbers for packet id, thus divide off by 4 * before passing it to mchp_otpc_id_to_packet(). */ packet = mchp_otpc_id_to_packet(otpc, off / 4);