summaryrefslogtreecommitdiff
path: root/include/splash.h
diff options
context:
space:
mode:
authorNikhil M Jain <n-jain1@ti.com>2023-04-20 17:41:12 +0530
committerAnatolij Gustschin <agust@denx.de>2023-04-24 21:37:45 +0200
commit9eeb1a299d40a4587d5b3c2b87ae8022998cf766 (patch)
tree4c2fa3efe6bf04365faae3cc0f2a5de4ea0a6633 /include/splash.h
parent53ae978af51df7926ffa2e2cd0ab2b5196a66ec8 (diff)
downloadu-boot-9eeb1a299d40a4587d5b3c2b87ae8022998cf766.tar.gz
u-boot-9eeb1a299d40a4587d5b3c2b87ae8022998cf766.tar.bz2
u-boot-9eeb1a299d40a4587d5b3c2b87ae8022998cf766.zip
common: Replace #ifdef and #if with if's
Avoid using preprocessor compilation directives and instead use simple logical expressions for better readability since compiler will anyway optimize out the respective code block if condition is not satisfied. Signed-off-by: Nikhil M Jain <n-jain1@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
Diffstat (limited to 'include/splash.h')
-rw-r--r--include/splash.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/splash.h b/include/splash.h
index b6a100ffc3..c392237598 100644
--- a/include/splash.h
+++ b/include/splash.h
@@ -60,21 +60,8 @@ static inline int splash_source_load(struct splash_location *locations,
#endif
int splash_screen_prepare(void);
-
-#if CONFIG_IS_ENABLED(SPLASH_SCREEN_ALIGN)
void splash_get_pos(int *x, int *y);
-#else
-static inline void splash_get_pos(int *x, int *y) { }
-#endif
-
-#if CONFIG_IS_ENABLED(SPLASH_SCREEN) && CONFIG_IS_ENABLED(BMP)
int splash_display(void);
-#else
-static inline int splash_display(void)
-{
- return -ENOSYS;
-}
-#endif
#define BMP_ALIGN_CENTER 0x7FFF