diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/spl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index d88fb79a676..74a19394520 100644 --- a/include/spl.h +++ b/include/spl.h @@ -505,6 +505,16 @@ struct spl_image_loader { struct spl_boot_device *bootdev); }; +/* Helper function for accessing the name */ +static inline const char *spl_loader_name(const struct spl_image_loader *loader) +{ +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT + return loader->name; +#else + return NULL; +#endif +} + /* Declare an SPL image loader */ #define SPL_LOAD_IMAGE(__name) \ ll_entry_declare(struct spl_image_loader, __name, spl_image_loader) |
