summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Neuling <[email protected]>2024-12-13 04:14:20 +0000
committerAnup Patel <[email protected]>2024-12-21 21:21:59 +0530
commit91196d76b7919fefa382b65f2416f4327435e3a1 (patch)
tree8a945839ceaaa89ff8c3f347f4ceb57cf57f4db5
parent8d8cc9507bd79afbe5c29b5d82868269691152f9 (diff)
inclue: sbi_utils: Cleanup int vs bool in semihosting_init() definitions
This is needed for a future patches to enable the new C23 language dialect. Signed-off-by: Michael Neuling <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--include/sbi_utils/serial/semihosting.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi_utils/serial/semihosting.h b/include/sbi_utils/serial/semihosting.h
index 8cc4a86c..ef4888fc 100644
--- a/include/sbi_utils/serial/semihosting.h
+++ b/include/sbi_utils/serial/semihosting.h
@@ -38,10 +38,10 @@ enum semihosting_open_mode {
#ifdef CONFIG_SERIAL_SEMIHOSTING
int semihosting_init(void);
-int semihosting_enabled(void);
+bool semihosting_enabled(void);
#else
static inline int semihosting_init(void) { return SBI_ENODEV; }
-static inline int semihosting_enabled(void) { return 0; }
+static inline bool semihosting_enabled(void) { return false; }
#endif
#endif