From patchwork Mon Dec 11 16:23:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13487572 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 69290C4167B for ; Mon, 11 Dec 2023 16:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dyKgkxzFWMsv0///kqwW2Ob9uXwhuDbFRn9b/ySrV9A=; b=XoNmOY7ugPLcFx Mx6/pUFT/0b4z9IrcnU6/+aprPLUzPZo5BwCj0Fc8pleBn7v/mp9BMVbShikbzwKx33OfsH/2fIn4 mnaCAxIquYJZ+NOYbbeRJ1PC+1Snyb9DluF/9odi/ecs7RVBwiyexDbZ/aYysbpEBq4lIQO7hq6lT re+TJrG5MK6wBK8UOicXoTPfFMUdJmRhX7V5vuHsgFBHklEQhqpwV8qL6k1Vyk4FxFQVaC7NjD+w5 CZ3rDy1GBaANZpxFctVJzThT+VWEtirSjaYM1Nh+0I1keQL317Q6Ka0kD686ycHxVwNlD7b76AILc klGBA/zf4qAjalVrCNdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCj5p-005mu7-2y; Mon, 11 Dec 2023 16:25:18 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCj55-005mQg-1E for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 16:24:45 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c25973988so49267425e9.2 for ; Mon, 11 Dec 2023 08:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702311870; x=1702916670; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZDDirj6oE74DYjeFThqKliMdW5Crzi8BOjdGcSc3/xA=; b=wpGdP3yi4+f4K8YNMB2I5t/DDKvwZTjIQVPBAToml6rhK+AiXtqO2ZpMeTqAdwaaoX O7d5n96MsOUxo/pMvDQeEWTxjwcRp3emhHp5mkcpkt6JmdvwvmPhBY9wpxYtThBlD8gS SXU44Q4PgzqGz0YSu6YEfBhWcLc4RADJjewLtTy+o/hfQDTwkmAK8JLfJ9241Sq/vRVP VNTkL+nMZFkwE1QbTlpxMnafkqyyfruYC5ftYv1KDOaJtR0jeFb5OXHneqh/PfQ2xaZL UAHQjbgwRlIj3+b5nDOjMDQ1/HUkG8FHL574tpbmFF0Gi/+6A02Cr2JtvFzek7XfrbFi uZTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702311870; x=1702916670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZDDirj6oE74DYjeFThqKliMdW5Crzi8BOjdGcSc3/xA=; b=JVA3XLjPQFxdUc7++ehCxRvN3v05YcHbCesRqVpK+qtWsbB+PzPv70Inde+5fBapzo GIEq4POf3YIgQSz+5hFcOx8s3vN7P6WRkpxdO8fI0PI1qB0p7dvNtG5iaOcSiBtOUpSG IqH7kakMqwN3MoXd86QrvJzX6+62LKhEF6bPbbVIt7DAlJn6FMzp0I4sCf9OnkC8TwK+ qs2OBeNDwqgryTv+/JF7QqmXYVi2aRUgGRNeaFQy5s9i1xFxVg611b0va/1mu95r6gvr qeIQc0fNnFSbV5E+MRFmlWsbpl8qyJidqj4pERLYVyJPDa848TyWqHEKouZ2OOvOHa4E eUbQ== X-Gm-Message-State: AOJu0Yxn1Jgc8X8UT4xSRj64LzRAEExgx3deZcLaQULlY8KqvF1uzCOY emS9odqxjzC4/+VTYvj/ZdgjfA== X-Google-Smtp-Source: AGHT+IEAmbAul6ZrpXg2twzLckxDam20V+qQFqTsLJY9Hw6C2Df9rmcAE5tB+Ru7HFpc1ZGE1jzsyw== X-Received: by 2002:a7b:c4c6:0:b0:40c:2766:5424 with SMTP id g6-20020a7bc4c6000000b0040c27665424mr2453843wmk.171.1702311869976; Mon, 11 Dec 2023 08:24:29 -0800 (PST) Received: from gpeter-l.lan (host-92-29-28-58.as13285.net. [92.29.28.58]) by smtp.gmail.com with ESMTPSA id o4-20020a5d58c4000000b0033333bee379sm8923103wrf.107.2023.12.11.08.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:24:29 -0800 (PST) From: Peter Griffin To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, conor+dt@kernel.org, sboyd@kernel.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com, linus.walleij@linaro.org, wim@linux-watchdog.org, linux@roeck-us.net, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, olof@lixom.net, gregkh@linuxfoundation.org, jirislaby@kernel.org, cw00.choi@samsung.com, alim.akhtar@samsung.com Cc: peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, saravanak@google.com, willmcvicker@google.com, soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, kernel-team@android.com, linux-serial@vger.kernel.org Subject: [PATCH v7 11/16] watchdog: s3c2410_wdt: Update QUIRK macros to use BIT macro Date: Mon, 11 Dec 2023 16:23:26 +0000 Message-ID: <20231211162331.435900-12-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231211162331.435900-1-peter.griffin@linaro.org> References: <20231211162331.435900-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231211_082436_911303_B55512CD X-CRM114-Status: GOOD ( 11.50 ) 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 Update the remaining QUIRK macros to use the BIT macro. Reviewed-by: Sam Protsenko Signed-off-by: Peter Griffin --- drivers/watchdog/s3c2410_wdt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 7ecb762a371d..b7a03668f743 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -107,11 +107,11 @@ * DBGACK_MASK bit disables the watchdog outputs when the SoC is in debug mode. * Debug mode is determined by the DBGACK CPU signal. */ -#define QUIRK_HAS_WTCLRINT_REG (1 << 0) -#define QUIRK_HAS_PMU_MASK_RESET (1 << 1) -#define QUIRK_HAS_PMU_RST_STAT (1 << 2) -#define QUIRK_HAS_PMU_AUTO_DISABLE (1 << 3) -#define QUIRK_HAS_PMU_CNT_EN (1 << 4) +#define QUIRK_HAS_WTCLRINT_REG BIT(0) +#define QUIRK_HAS_PMU_MASK_RESET BIT(1) +#define QUIRK_HAS_PMU_RST_STAT BIT(2) +#define QUIRK_HAS_PMU_AUTO_DISABLE BIT(3) +#define QUIRK_HAS_PMU_CNT_EN BIT(4) #define QUIRK_HAS_DBGACK_BIT BIT(5) /* These quirks require that we have a PMU register map */