summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-06-23 12:38:41 +0300
committerThierry Reding <treding@nvidia.com>2016-06-23 12:59:31 +0300
commit9f2e57cada0483c1d564053a254d6004cddf1c31 (patch)
tree4ceed3a4026b88a25cf216fb0c59672a2b964c86
parent813a9d4ecdf0f6a3bcb5cf57ea4b9ebd69b31ee8 (diff)
downloadlinux-9f2e57cada0483c1d564053a254d6004cddf1c31.tar.xz
gpu: host1x: Constify array of action handlers
This array never needs to be modified and therefore can be read-only data. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/host1x/intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/intr.c b/drivers/gpu/host1x/intr.c
index a04d10407639..8b4fad0ab35d 100644
--- 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,