diff options
Diffstat (limited to 'include/reset_source.h')
-rw-r--r-- | include/reset_source.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/reset_source.h b/include/reset_source.h index 8795029315..023b1fe4a0 100644 --- a/include/reset_source.h +++ b/include/reset_source.h @@ -24,7 +24,7 @@ enum reset_src_type { #ifdef CONFIG_RESET_SOURCE enum reset_src_type reset_source_get(void); -const char *reset_source_name(void); +const char *reset_source_to_string(enum reset_src_type st); int reset_source_get_instance(void); struct device_d *reset_source_get_device(void); @@ -41,7 +41,7 @@ static inline enum reset_src_type reset_source_get(void) return RESET_UKWN; } -static inline const char *reset_source_name(void) +static inline const char *reset_source_to_string(enum reset_src_type st) { return "unknown"; } @@ -89,4 +89,9 @@ static inline void reset_source_set(enum reset_src_type type) reset_source_set_priority(type, RESET_SOURCE_DEFAULT_PRIORITY); } +static inline const char *reset_source_name(void) +{ + return reset_source_to_string(reset_source_get()); +} + #endif /* __INCLUDE_RESET_SOURCE_H */ |