diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-11-08 23:37:38 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-11-29 10:54:08 -0800 |
commit | 8b6947a81e56f0ef06be8a6d805df9634b4fd3f7 (patch) | |
tree | 12eee2f42714d7f9321ebecee587947c84696ec6 /drivers/gpu/drm | |
parent | cc9014bf63a4d8fef0eee88e92f027928683ca12 (diff) | |
download | linux-8b6947a81e56f0ef06be8a6d805df9634b4fd3f7.tar.gz |
drm/msm: dsi: Constify dsi_host_ops
The only usage of dsi_host_ops is to assign its address to the ops field
in the mipi_dsi_host struct, which is a const pointer. Make it const to
allow the compiler to put it in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 198db8d4cf3d..ab281cba0f08 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1657,7 +1657,7 @@ static ssize_t dsi_host_transfer(struct mipi_dsi_host *host, return ret; } -static struct mipi_dsi_host_ops dsi_host_ops = { +static const struct mipi_dsi_host_ops dsi_host_ops = { .attach = dsi_host_attach, .detach = dsi_host_detach, .transfer = dsi_host_transfer, |