From patchwork Sat Dec 9 23:31:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13486191 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 96391C10DC3 for ; Sat, 9 Dec 2023 23:32:26 +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=0rTzC+/Fq6AchwfjpFwNBBvcy6UwzrR2gboo7ioudiY=; b=mkVcaNfEXdjffq jgEX6Xv9c6x451ZC4FXa8Z+x9wdU+hN3ddUk9DOBObPBcuZ7qzaZHkERCCrGweuZtgeBl0f7rFNHm l+dhTntC6mdK2k3F+HvajtpBQt2avDUIwdUC3cwKQ6K8VV970n9AT5f2FrZWkxTJLK3QYXvyReeoB r05L47pNfe+iFzFCJlUhkj6rTA0tfmmP/tVqExL8Aj+1BqK9xeYxFhEhBmNTYqInVZ6Wzt/dj7yIt SWpTlOqFPTM25IWMB3zGCf0tCFYL54sfw+9x/b5qykDs6R/URX2SjNnnA0nVvAI4ZWlbBh6TUsJhS r9QHTygECIBH4OTFts+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rC6nf-000hMm-0n; Sat, 09 Dec 2023 23:31:59 +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 1rC6nK-000h65-2r for linux-arm-kernel@lists.infradead.org; Sat, 09 Dec 2023 23:31:40 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c3f68b649so8227615e9.0 for ; Sat, 09 Dec 2023 15:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702164697; x=1702769497; 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=fFN6xER1loihBa9uWQwup/JqyzQhajX2oH9kffaNe40=; b=ZOhjXOfk2TGuBxjC7mgnIyyj4aUicfTVXwqXn+Hj+/sEi4djbmMXOQfERdAUfX/vxj nLKSs+TsRFp+RNqY3+bxnS5eKPcuM9t0hLRfRANfu7CPJ3PyDYLeKTP920hMHitUIHuy biO2M+ugbZm0J1hI0uUdeaVPGVgt/U06EDHNzGNDEDJbHM7Ay59s01hV545qyhjZ5ERU CwOxdJzBheST0Y7y7lnxYeN5tGBzDweo3D9Sb6mNBvWE2QpbXv4WW4gycm1GzM0tbZz+ Cwb5pH0ASwotjo4tlSB/Qf1gVn09z56P82T3LnkCaidM7I+0Kg0SnN89lG8/piyzIr9e JJJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702164697; x=1702769497; 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=fFN6xER1loihBa9uWQwup/JqyzQhajX2oH9kffaNe40=; b=Jde2oqb0t3ZTLpYQgSNRClnq2rIn2foQvth40doisOhOPiraq8TR7J88FgqUvdzvHz V6iD/nFJGVAMk7k3/TEAsdyZqK5FKkYX3BngxIx/HAHDvB/UD9/OknAk6DDTWoNpyvW3 6OgWN1yYtdhPusImAJQRznk6BbLVtQvPTzD2jX0OUlcJIdyvpMct2pLl7rw3mL+Hcthi 6nCuT0oHHotKdnpTPCgWpPFv97qdsmIR6bB0lgZ0Hg0OcJb3pcpeuEcp6H64PpuWmjVP rZHzUer3dMuRYlMb9tixlexx2FGdZwAUIj/yb6XfU8+hATATDOHSvUcaLXe9HCXuKJhP TUUQ== X-Gm-Message-State: AOJu0Yzq73WgYcFtURy4Lv0nPSh4qgmeRKvz/MvLZoMn3jKM/NhqMFgk l74pKGL1NyaAYtZxmQhcjmG8vQ== X-Google-Smtp-Source: AGHT+IHlNWaNCCCVx46tnk9DPqNQxKSg2eKBcJFo3Qqg135ZJrQ+9HNnrazePrrKs5Bhv5Z8UV7hxA== X-Received: by 2002:a7b:c850:0:b0:40c:2b16:1e3 with SMTP id c16-20020a7bc850000000b0040c2b1601e3mr782723wml.84.1702164697697; Sat, 09 Dec 2023 15:31:37 -0800 (PST) Received: from gpeter-l.lan (host-92-23-61-173.as13285.net. [92.23.61.173]) by smtp.gmail.com with ESMTPSA id n9-20020a05600c4f8900b0040c41846923sm1875277wmq.26.2023.12.09.15.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 15:31:37 -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 v6 15/20] watchdog: s3c2410_wdt: Update QUIRK macros to use BIT macro Date: Sat, 9 Dec 2023 23:31:01 +0000 Message-ID: <20231209233106.147416-16-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231209233106.147416-1-peter.griffin@linaro.org> References: <20231209233106.147416-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-20231209_153138_966264_07F54014 X-CRM114-Status: GOOD ( 11.31 ) 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. Signed-off-by: Peter Griffin Reviewed-by: Sam Protsenko --- 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 */