diff options
| author | Nikita Kiryanov <[email protected]> | 2015-02-03 13:32:21 +0200 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2015-02-10 13:25:08 +0100 |
| commit | 38b550877fd819ce7842b73530dcbacc098c9f0f (patch) | |
| tree | 1701a3a9aa0e55548ceab3791c83c4e571ee175a /include | |
| parent | baaa7dd7061521509792ca158508b2c4554a7184 (diff) | |
lcd: split configuration_get_cmap
configuration_get_cmap() is multiple platform-specific functions stuffed into
one function. Split it into multiple versions, and move each version to the
appropriate driver to reduce the #ifdef complexity.
Signed-off-by: Nikita Kiryanov <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Bo Shen <[email protected]>
Tested-by: Josh Wu <[email protected]>
Cc: Bo Shen <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/lcd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/lcd.h b/include/lcd.h index fbba6a27f9f..4ada617e021 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -60,8 +60,15 @@ typedef struct vidinfo { void *priv; /* Pointer to driver-specific data */ } vidinfo_t; + +static __maybe_unused ushort *configuration_get_cmap(void) +{ + return panel_info.cmap; +} #endif +ushort *configuration_get_cmap(void); + extern vidinfo_t panel_info; /* Video functions */ |
