From: Thierry Reding Date: Thu, 23 Jun 2016 09:38:41 +0000 (+0200) Subject: gpu: host1x: Constify array of action handlers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f2e57cada0483c1d564053a254d6004cddf1c31;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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,