From patchwork Thu Sep 12 12:49:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Kreimer X-Patchwork-Id: 13802103 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 96E5AEEB59F for ; Thu, 12 Sep 2024 12:53:18 +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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3rp8VVpH/dfJ3MmMbT8/Q3u0ccTN+30a/lu2S0UiEGQ=; b=U4uz1pmZuedrkJpict7XYElPHM 1LwSyE3lo9L0lC4GCZRJWIJbwDVLm+YFL8VJTTwG585mldXPBS06w0sFEsohVZ7XOoVLy86BPliHT c7/PMZOpS0NG0gwGiWJpuL1N3ozNAH1MnFZ8bWmNqnzboV95cuYkBKg/pdRzO8R0KLsZtu969hmMj tnV7GOXIeJKUZRy23qpim8JVNTHECwlOa8vLICbXn1wsOrM+3fFvzijasVbutCRXlI+jrMf//tugf ZZzxXYah5yOFXycnDvIN5I8/nFjHcBIgf26Hgh+n0/kk17Q7xDxfCeALE2W54yJDkVUz65dwyRHiG dVwjUyhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sojJp-0000000D6TI-0plP; Thu, 12 Sep 2024 12:53:05 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sojGp-0000000D5k7-3KuH for linux-arm-kernel@lists.infradead.org; Thu, 12 Sep 2024 12:50:01 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42cacabd2e0so7963155e9.3 for ; Thu, 12 Sep 2024 05:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726145397; x=1726750197; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3rp8VVpH/dfJ3MmMbT8/Q3u0ccTN+30a/lu2S0UiEGQ=; b=cwZgYZVZ66G1w6a/JqErGdhSbDCupLmDQaTGiaZ85zH7QDavG855txyICOzJ3C1p1G iETK32aubWd8QftrDVro56BSHZfl23HavdxtsJB3L7hFBM/Km59oCknaUJZa2GhhyzS1 IU9SkUbxHi1XSjPlc03J+bHG8ZQDTwrctRzwu5NsKXDJCYWoHqS+KhTSJCVaFdxILbBo hlSLOF8QMOb3a/FEJ4wQkxet39hEDeQ84zW6Zz2q2TiK6+QB0Vq/RY+mo4oUHzEN/qC6 K/7ryuFk7LuocXGP4rENthBA2EuY9/f+3LjKKwF2RUDma3HcMhOz8PsL4x9jG2Clh/MA MJfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726145397; x=1726750197; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3rp8VVpH/dfJ3MmMbT8/Q3u0ccTN+30a/lu2S0UiEGQ=; b=Ue+cFUsG7Ocf3cck5RHl2HQHN/YEo2uS/qk3FS1sBEN6Na3k+hR21D4dHgeAq9BCqI DEZkK4qhP7li1oNiNivnhfcEIZZjnY5S2esz6A/b+flBI/YbRe40rbvgVSEOdbML8Fow Cg/OYoikm5OF6bOeSfJC+/6N/z9suAV4gftSqKA+Zd5uenbU++eZ8LKyAIFzSUTAzJhr S1IEODMUT0TuPfFORyengtiyCZG7Kk+8m+0atoh8FXhlIxbe51cU4ISU8JxG6AJeL8Yu L7ByEYwLYgviENCoNwXniGtO0KicrOhnHGDOIWboYA8PCrNYBRi5os5tcSIxRZngbNXh cBNw== X-Forwarded-Encrypted: i=1; AJvYcCWwAP+hDcLWFt9deqiW1/wy1QN96P8VrkTeXqIu4PCwc5x37D/ownwunFvrD/4goiNw9tUbXI49czZPyzvCQM23@lists.infradead.org X-Gm-Message-State: AOJu0Yw2q6Gz6cfdQEesgeRoSAp+iPN6iu3ifhCiWsFrWe9sNV4MaLal EnpkFcSQMNZW7kurxqSQEiKZpztLdgONsNoZrizDuqy4hemTfwHx X-Google-Smtp-Source: AGHT+IHvi+LdQatFb0FXKtNS+8padGl4YLk4uDGuOprj1zEkd8AriHOoq/BcAdcDtYHdudFTCHDnHA== X-Received: by 2002:a05:600c:3581:b0:42c:c401:6d67 with SMTP id 5b1f17b1804b1-42cdb4e6966mr20929535e9.6.1726145396696; Thu, 12 Sep 2024 05:49:56 -0700 (PDT) Received: from void.void ([141.226.9.101]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cb5affb16sm148200105e9.37.2024.09.12.05.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 05:49:56 -0700 (PDT) From: Andrew Kreimer To: Fabrice Gasnier , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Maxime Coquelin , Alexandre Torgue Cc: linux-pwm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Andrew Kreimer , Matthew Wilcox Subject: [PATCH] pwm: stm32: Fix a typo Date: Thu, 12 Sep 2024 15:49:34 +0300 Message-ID: <20240912124944.43284-1-algonell@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240912_054959_852134_7EC9B4C7 X-CRM114-Status: GOOD ( 12.97 ) 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 Fix a typo in comments. Reported-by: Matthew Wilcox Signed-off-by: Andrew Kreimer --- drivers/pwm/pwm-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c index f85eb41cb084..eb24054f9729 100644 --- a/drivers/pwm/pwm-stm32.c +++ b/drivers/pwm/pwm-stm32.c @@ -222,7 +222,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, scale = max_arr / min(max_arr, raw_prd); } else { - scale = priv->max_arr; /* bellow resolution, use max scale */ + scale = priv->max_arr; /* below resolution, use max scale */ } if (psc && scale > 1) {