aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2018-12-03 17:01:30 -0800
committerJulius Werner <jwerner@chromium.org>2018-12-06 16:10:36 -0800
commit0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a (patch)
tree586f6b4870e269ae21d0a694102fc9d66a0b3b3d
parent63c52d0071ef4f9252f073fc3ee30fa1b2b2cf90 (diff)
downloadplatform_external_arm-trusted-firmware-0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a.tar.gz
platform_external_arm-trusted-firmware-0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a.tar.bz2
platform_external_arm-trusted-firmware-0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a.zip
console: Fix console_unregister() signature
console_unregister() has always returned a pointer to the console that was removed on success, not just an integer. Fix the C prototype to match the assembly implementation. Change-Id: Iafc43de0767a5c87c9ae5c3aba53761dd28d51e6 Signed-off-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--include/drivers/console.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/drivers/console.h b/include/drivers/console.h
index 23754665c..02f2f8a2d 100644
--- a/include/drivers/console.h
+++ b/include/drivers/console.h
@@ -52,8 +52,9 @@ typedef struct console {
* implementation, e.g. console_16550_register() from <uart_16550.h>. Consoles
* registered that way can be unregistered/reconfigured with below functions.
*/
-/* Remove a single console_t instance from the console list. */
-int console_unregister(console_t *console);
+/* Remove a single console_t instance from the console list. Return a pointer to
+ * the console that was removed if it was found, or NULL if not. */
+console_t *console_unregister(console_t *console);
/* Returns 1 if this console is already registered, 0 if not */
int console_is_registered(console_t *console);
/*