diff options
author | Thierry Reding <treding@nvidia.com> | 2016-06-23 11:38:41 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-23 11:59:31 +0200 |
commit | 9f2e57cada0483c1d564053a254d6004cddf1c31 (patch) | |
tree | 4ceed3a4026b88a25cf216fb0c59672a2b964c86 /drivers/gpu/host1x | |
parent | 813a9d4ecdf0f6a3bcb5cf57ea4b9ebd69b31ee8 (diff) | |
download | linux-9f2e57cada0483c1d564053a254d6004cddf1c31.tar.gz linux-9f2e57cada0483c1d564053a254d6004cddf1c31.tar.bz2 linux-9f2e57cada0483c1d564053a254d6004cddf1c31.zip |
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>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r-- | drivers/gpu/host1x/intr.c | 2 |
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, |