aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Papastamos <dimitris.papastamos@arm.com>2018-07-31 16:09:07 +0100
committerGitHub <noreply@github.com>2018-07-31 16:09:07 +0100
commite313c122a707aedec63134448920c466e160957e (patch)
tree61929f85d03c3de5709add6ba10b6088f3569c69
parent72bc63185c37696877b189cf86c8f52d11911622 (diff)
parent455bca21fed1c2152c1e7a916d1a7c1e04d9d1c0 (diff)
downloadtrusted-firmware-a-e313c122a707aedec63134448920c466e160957e.tar.gz
Merge pull request #1500 from danielboulby-arm/db/RORedirection
Set console function pointers to const
-rw-r--r--include/drivers/console.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drivers/console.h b/include/drivers/console.h
index 6e7ebbf9ca..f9ed2e569c 100644
--- a/include/drivers/console.h
+++ b/include/drivers/console.h
@@ -39,9 +39,9 @@ typedef struct console {
* fields of the struct to 64 bits in AArch64 and 32 bits in AArch32
*/
u_register_t flags;
- int (*putc)(int character, struct console *console);
- int (*getc)(struct console *console);
- int (*flush)(struct console *console);
+ int (*const putc)(int character, struct console *console);
+ int (*const getc)(struct console *console);
+ int (*const flush)(struct console *console);
/* Additional private driver data may follow here. */
} console_t;
#include <console_assertions.h> /* offset macro assertions for console_t */