From patchwork Mon Sep 23 07:50:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Zhen X-Patchwork-Id: 13809349 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2053.outbound.protection.outlook.com [40.107.117.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FB9B7344C; Mon, 23 Sep 2024 07:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727077846; cv=fail; b=Vvv+MykDVCMJnsnSnHKxPjBt+3v1QsijywsCcN7IHPdVybwFc9LtRiJtzwZ6CfF0Y2+mLquCy2d2kZYAhiKWP5JNVKKrbdtZH96bverEEmvzEqifGCNNvKyZG6Qy3WUb0bHS0aIh+sZm3NDbL4sDwrcU9u/FOB9IepaU69QsCcU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727077846; c=relaxed/simple; bh=mxIjzoSRjaWcHqJWJxCAA5j7+5S6WHHRCDqBzrpY7RM=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=niQCvr4DLVGDpcBIwwfBn4yfetrqRTUZMtU3EX7S6JusmnlWmyQAo40AJe1K29EfnUsJ+Hg8fRrcmx4tq/maNkWRJpKIqEaF669hj+jouis8xpKnVxG6opmewndGL01Hca8CiiW1qKIpqnfrufDU6HeacCOJt9HUhgO8IXGIj5U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=HVnmai1L; arc=fail smtp.client-ip=40.107.117.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="HVnmai1L" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Wiv0/sxivFdHAFxrwoos2ATXr4uf1tuRc8lhMnqBxbrOsb9G8Bw8FvYnGhM/pvDzp2nqQOf8glxJCykaPYHyxNcP5o5yab+SWEWbTUQEl3LHLWpum2oP9palNomgwlw/s28Bu7BVNpi2/tZJn26Quc88uPk1Ggg8dZXJFJiBeEHaY2LZMMO6NizHG7kwRqtZWNF+u8HPcGk2j/Vd16OU2YhBG9+cGJZu3uetfSe4bFHLfXbIAhs/ZqTrE8PKjjd8TL4Sng6wGKVXhdiToN4o66qDANtR/lEhR4uC4LhG09XtvF+u7j7vt0zvzYg3QWXpFJIZKT+KSfRDX/gRKEoryQ== 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=4+WGbRvtU9yD7vE4pJHIoy4Y7EumFZEIM8xx/uV4YJc=; b=r7E1jN6e0GyN8yq8oIG152/sjCU/R65W9I8XBcCdpRz/1ifeEL53I37MzmnIdh0PJ+Ya32tx1H7FRUlgEzagkrEC07h/2rD72vkp2ZDZE43+TeUQiupS975A6h7oy7zAbPs6omowBRR/s1dV0QQ8BcYvMfFApdhvT3k58496obxNWvGme+c/OwHbhMm70hiY/eZ6FgqXitm4tN+mO9UXpDZzckL4exs8ZQG8TxPr8OsM+4/wP8gD/iSEdgfdNM+ujNLRoX/ntSwW2oXze0fobzO4OMX/qy7KJ8lx53Gqo3abwo1EUymT9eUS1yR3z83bHriSU6eGa7B77PWDU5MjHg== 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=4+WGbRvtU9yD7vE4pJHIoy4Y7EumFZEIM8xx/uV4YJc=; b=HVnmai1LniYAgn3h2rbWKicDJ6NPXRxbFfTAsCl3vquZa095//+aScFYpMLJn6MLvZ5C/+08TQ3FEXeBS8s2xD47yqemdUzlfrGK2A71JfjKnWjSEheL7LPpdASC3EURmQpX4z9z8NjM6XeiT1+Y3+d1uMfpeKYjnmFE238q5RX5db9kj1JGK5N3YfW+rMdwlhEqc2fNY6IWe1rfudni9e2D7dS/VtpPwD7MoQRKyLqhicKShZe2RylW8+nVPmPGP8zpji2b/MD+kLq2bzoFUTQ6w8XwxjjBLh6DZmMjoIyWczcfPQokZsqXI5QqRqxhq0gn+r9fVqbUlJWiuIvOFA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) by TYZPR06MB7256.apcprd06.prod.outlook.com (2603:1096:405:ab::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Mon, 23 Sep 2024 07:50:40 +0000 Received: from KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1]) by KL1PR0601MB4113.apcprd06.prod.outlook.com ([fe80::7e85:dad0:3f7:78a1%4]) with mapi id 15.20.7982.022; Mon, 23 Sep 2024 07:50:40 +0000 From: Yan Zhen To: wim@linux-watchdog.org, linux@roeck-us.net, xingyu.wu@starfivetech.com, samin.guo@starfivetech.com Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Yan Zhen Subject: [PATCH v1] watchdog: fix typo in the comment Date: Mon, 23 Sep 2024 15:50:16 +0800 Message-Id: <20240923075016.2439774-1-yanzhen@vivo.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: TY2PR02CA0067.apcprd02.prod.outlook.com (2603:1096:404:e2::31) To KL1PR0601MB4113.apcprd06.prod.outlook.com (2603:1096:820:31::7) Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR0601MB4113:EE_|TYZPR06MB7256:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cfc6aa0-da6b-49cf-e619-08dcdba46b14 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: 4S36UlVJRAJQijf9Z8GxwzBhkoLDduk866sX+r5CJqRS/iVqrK/C8bSdOi1u5hJMiA0JrhBDeHslsKlWN9yhCuNNd38fnFhMckC2UCEgHMumMNDO/Sd851Z7Tlw3dL/eiZ0zOtcyzDYF+HBf4gkL14vOMTUXVz5KleBCYsHzfzDdIUOY1IEsCrd9/3K2v+Uwiz7e6+Cyql2azbuBcEGDSkOl0AXDny0zrKfp6bZwBIfBDIm87lLoMteZse1LbeSiUKoh78iQFVGzqvn9ZZUAS83SB+OAChnu3dzoBvqFhWTlABd9sIqk1RBg+Q2LUjktSkil4Pluxd/kWsw/cv3D9SqlC8ZtbIds3lAjB3J10dHkN9zTmsBuPXcSRKqyU5euINOGc0spAWVcOEmsDLf0pTm3TWoZB6KUbtrYWP7YC+J42rit9NQlscMySPblN3vznlzA8hq8659B5D3MzQ714AKu1nk0ywXHBaExn+fidDhZh1Ljv/4gEA9Jzo1/SsAHXb+kevlpOiuLlJLr7qqj49uqzddDIvcUnA1SngNQfR2IED4+J3ptw6ZNaENGRgN2q/0rlWpOtcXerchQoxumPlWeKNvWNwF9XBRd8K7OD2SGbOcyvOmLUNbFaLN2RRLhXr/yQRMsP5svqbTd4tgkrUhv82NEIno2M27N13vYnk/LMr4+0qf14VBaQ6NzEFvDH5/axnGNyuCzwNY4if2cCXkTft6aQpYEW4me5Vb2XbmgiBrnNJsdi4HjM9NEWA71rTdrHXYv3QKZiOioPPbAplOgEuOAoDpZaxTtvhhsGFk1UMQ3qQzf6vLIvD4bU9EZeoWn0uaLn4BEHdsNEeALLvxnSvX5+ff6Uk/W750qIDTNm+6tP0TePba+/wg+XdFucN+SJ7W+voDrXf+eIGjBdBt5/fyxQG1rot/lym/8chMWzWhnkc5cQviXscoL0v2BGpV9BHuzzFP63KjLo2fyktBFah/0A0Q5E8kG+R98ASTbm/SrS/uMSGggv2VX1yg6HtXoQec81ZCxnaV55rv+H5vvyyeNv6llp8K2H1H2wqWB3ZD9YilzdRmwnAH4oJ3KYlZla/Qwp9i36gdaJ1jOny7wrBAgmqsrNYsPkH0TdEHYbqj0Pi6hGNfSMdcofGVBNji1OfjcJY2C60nS4oHBwxDqfhes0bOn82/O7T7ZEYkCdt/HeRypi7VQvOQ97qSMNurM/lsPm/LY14r6sF7IXVfj48GAUAg9H5Ik46IsdmWu55PYjgPEw3IaRrHXLaiL+QeFsJ1iGDVbj9oZRlr1LVvtQU2Uk8PPev4oGDYbxfHxx1kLjYjRA0ERAVJYGHOpFsOVoAai5DhnrESsrHMDpTBh+H5x4LXM3e4JNu3xhdFE7TTW3XuABMX5oTSQB8r8kxedHtATEULoKRV9U51b6A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:KL1PR0601MB4113.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014);DIR:OUT;S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6ZJnkdtI8liliDbD9IZruxm2F0GDLihDIbwgeO1v7FYI0dKhuT2c4JP2lh7XkAw6Lo+IY6kFVzJP7nrAgNy/InFbCOeUMPmw6HLNr/8nZCLQnrNIjP2Xqr01JMgL+6KSrnAiYCUWM8Qd6Fzk8KIGWG6x8F3q9ZSDwEf6zjfngOWesiM6uZLxkzrXvTEHGYysPPu6IvP421Pe6WRkQICQ32vtyIS3tEcBl4RKexlRmSBne9LmuNQFKhU3cCIvMzABoSV9Yo29Pm3d6DciHTabZ1arA7KT0I1jDRz8caLQjnJLgpm2rR1Mk1r/UPrEn8sXC27vcp9qN4DpxuWY5ho1ATigcoVgDLWsQzKIuqCiVIno20dOZs3OX31H35E5QATGUu9O2VGlDIwAj91fdrQMhscR1JcWG6fcO0nVPb5jIXn9woi9iAf/V1YhPvAcXuSJi621/5sjUSFQa8bUBNKTor9ooRQFP/GI6hDmdZqcnQROstYhn8aFmnjllVdVIZiZ/cWSIUar1teovoScOhAz61OlArum7tnYYnp6ny2w++IAFp5GRM9rcTpDYWFDQBfsMFB8GtHAmo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5cfc6aa0-da6b-49cf-e619-08dcdba46b14 X-MS-Exchange-CrossTenant-AuthSource: KL1PR0601MB4113.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2024 07:50:40.0116 (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: 2We/XTA/c54R7XJLpzHRRAPY3hWxhcdG5gzXaPPIrTEQYaUNpftf4WpcnnYlnzPEnHmL/AHLURsN6AUOT+73Gg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB7256 Correctly spelled comments make it easier for the reader to understand the code. Fix typos: 'hearbeat' -> 'heartbeat', 'retrigggers' -> 'retriggers', 'funtions' -> 'functions', 'Resgister' -> 'Register'. Signed-off-by: Yan Zhen --- drivers/watchdog/pcwd.c | 2 +- drivers/watchdog/rzn1_wdt.c | 2 +- drivers/watchdog/smsc37b787_wdt.c | 2 +- drivers/watchdog/starfive-wdt.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index a793b03a785d..c57293335d6c 100644 --- a/drivers/watchdog/pcwd.c +++ b/drivers/watchdog/pcwd.c @@ -835,7 +835,7 @@ static int pcwd_isa_match(struct device *dev, unsigned int id) port0 = inb_p(base_addr); port1 = inb_p(base_addr + 1); - /* Has either hearbeat bit changed? */ + /* Has either heartbeat bit changed? */ if ((port0 ^ last_port0) & WD_HRTBT || (port1 ^ last_port1) & WD_REVC_HRBT) { retval = 1; diff --git a/drivers/watchdog/rzn1_wdt.c b/drivers/watchdog/rzn1_wdt.c index 7d3192d34afd..96fd04fbc2a2 100644 --- a/drivers/watchdog/rzn1_wdt.c +++ b/drivers/watchdog/rzn1_wdt.c @@ -52,7 +52,7 @@ static int rzn1_wdt_ping(struct watchdog_device *w) { struct rzn1_watchdog *wdt = watchdog_get_drvdata(w); - /* Any value retrigggers the watchdog */ + /* Any value retriggers the watchdog */ writel(0, wdt->base + RZN1_WDT_RETRIGGER); return 0; diff --git a/drivers/watchdog/smsc37b787_wdt.c b/drivers/watchdog/smsc37b787_wdt.c index 7463df479d11..798562e8b92e 100644 --- a/drivers/watchdog/smsc37b787_wdt.c +++ b/drivers/watchdog/smsc37b787_wdt.c @@ -485,7 +485,7 @@ static long wb_smsc_wdt_ioctl(struct file *file, } } -/* -- Notifier funtions -----------------------------------------*/ +/* -- Notifier functions -----------------------------------------*/ static int wb_smsc_wdt_notify_sys(struct notifier_block *this, unsigned long code, void *unused) diff --git a/drivers/watchdog/starfive-wdt.c b/drivers/watchdog/starfive-wdt.c index 19a2620d3d38..a8b6cf767117 100644 --- a/drivers/watchdog/starfive-wdt.c +++ b/drivers/watchdog/starfive-wdt.c @@ -80,7 +80,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); struct starfive_wdt_variant { - unsigned int control; /* Watchdog Control Resgister for reset enable */ + unsigned int control; /* Watchdog Control Register for reset enable */ unsigned int load; /* Watchdog Load register */ unsigned int reload; /* Watchdog Reload Control register */ unsigned int enable; /* Watchdog Enable Register */