diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-14 03:12:37 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 16:13:25 +0300 |
commit | e0528c944058e137a1c74176173109a6864241ac (patch) | |
tree | 20028b7127167298b39c965c7c14dcf8b026293f /drivers/gpu/drm/omapdrm/displays/panel-dpi.c | |
parent | 21ebcbac5066a36e0d88ea43921cce8418fd453a (diff) | |
download | lwn-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.c | 2 |
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, |