projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813a9d4
)
gpu: host1x: Constify array of action handlers
author
Thierry Reding
<treding@nvidia.com>
Thu, 23 Jun 2016 09:38:41 +0000
(11:38 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 23 Jun 2016 09:59:31 +0000
(11:59 +0200)
This array never needs to be modified and therefore can be read-only
data.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/intr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/host1x/intr.c
b/drivers/gpu/host1x/intr.c
index a04d10407639110016bf3f7f0a9740f0679e55ff..8b4fad0ab35d24de11380ec00f7e8e6802db5c3a 100644
(file)
--- a/
drivers/gpu/host1x/intr.c
+++ b/
drivers/gpu/host1x/intr.c
@@
-135,7
+135,7
@@
static void action_wakeup_interruptible(struct host1x_waitlist *waiter)
typedef void (*action_handler)(struct host1x_waitlist *waiter);
-static action_handler action_handlers[HOST1X_INTR_ACTION_COUNT] = {
+static
const
action_handler action_handlers[HOST1X_INTR_ACTION_COUNT] = {
action_submit_complete,
action_wakeup,
action_wakeup_interruptible,