.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2015-2016 MediaTek Inc. |
---|
3 | 4 | * Author: Houlong Wei <houlong.wei@mediatek.com> |
---|
4 | 5 | * Ming Hsiu Tsai <minghsiu.tsai@mediatek.com> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | 6 | */ |
---|
15 | 7 | |
---|
16 | 8 | #include "mtk_mdp_core.h" |
---|
.. | .. |
---|
23 | 15 | return container_of(vpu, struct mtk_mdp_ctx, vpu); |
---|
24 | 16 | } |
---|
25 | 17 | |
---|
26 | | -static void mtk_mdp_vpu_handle_init_ack(struct mdp_ipi_comm_ack *msg) |
---|
| 18 | +static void mtk_mdp_vpu_handle_init_ack(const struct mdp_ipi_comm_ack *msg) |
---|
27 | 19 | { |
---|
28 | 20 | struct mtk_mdp_vpu *vpu = (struct mtk_mdp_vpu *) |
---|
29 | 21 | (unsigned long)msg->ap_inst; |
---|
.. | .. |
---|
34 | 26 | vpu->inst_addr = msg->vpu_inst_addr; |
---|
35 | 27 | } |
---|
36 | 28 | |
---|
37 | | -static void mtk_mdp_vpu_ipi_handler(void *data, unsigned int len, void *priv) |
---|
| 29 | +static void mtk_mdp_vpu_ipi_handler(const void *data, unsigned int len, |
---|
| 30 | + void *priv) |
---|
38 | 31 | { |
---|
39 | | - unsigned int msg_id = *(unsigned int *)data; |
---|
40 | | - struct mdp_ipi_comm_ack *msg = (struct mdp_ipi_comm_ack *)data; |
---|
| 32 | + const struct mdp_ipi_comm_ack *msg = data; |
---|
| 33 | + unsigned int msg_id = msg->msg_id; |
---|
41 | 34 | struct mtk_mdp_vpu *vpu = (struct mtk_mdp_vpu *) |
---|
42 | 35 | (unsigned long)msg->ap_inst; |
---|
43 | 36 | struct mtk_mdp_ctx *ctx; |
---|