]> git.sur5r.net Git - u-boot/blobdiff - include/reset.h
include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
[u-boot] / include / reset.h
index d38f1765ec5338c5662ea99c1f1b3b2f3eed663b..a7bbc1c331bcc486ec80b9fcd6d7a3c4937e9766 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Copyright (c) 2016, NVIDIA CORPORATION.
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #ifndef _RESET_H
@@ -78,7 +77,7 @@ struct reset_ctl_bulk {
        unsigned int count;
 };
 
-#ifdef CONFIG_DM_RESET
+#if CONFIG_IS_ENABLED(DM_RESET)
 /**
  * reset_get_by_index - Get/request a reset signal by integer index.
  *
@@ -243,7 +242,8 @@ static inline int reset_get_by_index(struct udevice *dev, int index,
        return -ENOTSUPP;
 }
 
-static inline int reset_get_bulk(struct udevice *dev, struct clk_bulk *bulk)
+static inline int reset_get_bulk(struct udevice *dev,
+                                struct reset_ctl_bulk *bulk)
 {
        return -ENOTSUPP;
 }
@@ -284,7 +284,7 @@ static inline int reset_release_all(struct reset_ctl *reset_ctl, int count)
        return 0;
 }
 
-static inline int reset_release_bulk(struct clk_bulk *bulk)
+static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)
 {
        return 0;
 }