summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/omapdrm/displays/panel-dpi.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-02-14 03:12:37 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-03 16:13:25 +0300
commite0528c944058e137a1c74176173109a6864241ac (patch)
tree20028b7127167298b39c965c7c14dcf8b026293f /drivers/gpu/drm/omapdrm/displays/panel-dpi.c
parent21ebcbac5066a36e0d88ea43921cce8418fd453a (diff)
downloadlwn-e0528c944058e137a1c74176173109a6864241ac.tar.gz
lwn-e0528c944058e137a1c74176173109a6864241ac.zip
drm/omap: dss: Constify omap_dss_driver operations structure
The structure contains function pointers that don't need to be modified. Make all its instances const to improve security. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/displays/panel-dpi.c')
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-dpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c
index 6cbf570d6727..e874f0b72798 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-dpi.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-dpi.c
@@ -153,7 +153,7 @@ static int panel_dpi_check_timings(struct omap_dss_device *dssdev,
return in->ops.dpi->check_timings(in, vm);
}
-static struct omap_dss_driver panel_dpi_ops = {
+static const struct omap_dss_driver panel_dpi_ops = {
.connect = panel_dpi_connect,
.disconnect = panel_dpi_disconnect,