diff mbox series

[100/171] Correct SPL uses of HW_WATCHDOG

Message ID 20230130144324.206208-101-sjg@chromium.org
State Changes Requested
Headers show
Series Kconfig: More cleanup of CONFIG options | expand

Commit Message

Simon Glass Jan. 30, 2023, 2:42 p.m. UTC
This converts 2 usages of this option to the non-SPL form, since there is
no SPL_HW_WATCHDOG defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/crypto/aspeed/aspeed_hace.c | 2 +-
 drivers/crypto/hash/hash_sw.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

ChiaWei Wang Jan. 31, 2023, 1:14 a.m. UTC | #1
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>

Thanks.

> From: Simon Glass <sjg@chromium.org>
> Sent: Monday, January 30, 2023 10:42 PM
> 
> This converts 2 usages of this option to the non-SPL form, since there is no
> SPL_HW_WATCHDOG defined in Kconfig
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/crypto/aspeed/aspeed_hace.c | 2 +-
>  drivers/crypto/hash/hash_sw.c       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/aspeed/aspeed_hace.c
> b/drivers/crypto/aspeed/aspeed_hace.c
> index a1b0b9f564b..6b6c8fa6588 100644
> --- a/drivers/crypto/aspeed/aspeed_hace.c
> +++ b/drivers/crypto/aspeed/aspeed_hace.c
> @@ -288,7 +288,7 @@ static int aspeed_hace_digest_wd(struct udevice *dev,
> enum HASH_ALGO algo,
>  	if (rc)
>  		return rc;
> 
> -	if (CONFIG_IS_ENABLED(HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
> +	if (IS_ENABLED(CONFIG_HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
>  		cur = ibuf;
>  		end = ibuf + ilen;
> 
> diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c
> index 553c068010c..d8065d68ea4 100644
> --- a/drivers/crypto/hash/hash_sw.c
> +++ b/drivers/crypto/hash/hash_sw.c
> @@ -244,7 +244,7 @@ static int sw_hash_digest_wd(struct udevice *dev,
> enum HASH_ALGO algo,
>  	if (rc)
>  		return rc;
> 
> -	if (CONFIG_IS_ENABLED(HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
> +	if (IS_ENABLED(CONFIG_HW_WATCHDOG) ||
> CONFIG_IS_ENABLED(WATCHDOG)) {
>  		cur = ibuf;
>  		end = ibuf + ilen;
> 
> --
> 2.39.1.456.gfc5497dd1b-goog
diff mbox series

Patch

diff --git a/drivers/crypto/aspeed/aspeed_hace.c b/drivers/crypto/aspeed/aspeed_hace.c
index a1b0b9f564b..6b6c8fa6588 100644
--- a/drivers/crypto/aspeed/aspeed_hace.c
+++ b/drivers/crypto/aspeed/aspeed_hace.c
@@ -288,7 +288,7 @@  static int aspeed_hace_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
 	if (rc)
 		return rc;
 
-	if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+	if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
 		cur = ibuf;
 		end = ibuf + ilen;
 
diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c
index 553c068010c..d8065d68ea4 100644
--- a/drivers/crypto/hash/hash_sw.c
+++ b/drivers/crypto/hash/hash_sw.c
@@ -244,7 +244,7 @@  static int sw_hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo,
 	if (rc)
 		return rc;
 
-	if (CONFIG_IS_ENABLED(HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
+	if (IS_ENABLED(CONFIG_HW_WATCHDOG) || CONFIG_IS_ENABLED(WATCHDOG)) {
 		cur = ibuf;
 		end = ibuf + ilen;