diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-14 04:12:37 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 16:13:25 +0300 |
commit | e0528c944058e137a1c74176173109a6864241ac (patch) | |
tree | 20028b7127167298b39c965c7c14dcf8b026293f /drivers/gpu/drm/omapdrm/dss/omapdss.h | |
parent | 21ebcbac5066a36e0d88ea43921cce8418fd453a (diff) | |
download | linux-e0528c944058e137a1c74176173109a6864241ac.tar.xz |
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/dss/omapdss.h')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index 426ac8297f5f..e3d31b2fee4c 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h @@ -466,7 +466,7 @@ struct omap_dss_device { const char *name; - struct omap_dss_driver *driver; + const struct omap_dss_driver *driver; union { const struct omapdss_dpi_ops *dpi; |