diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2020-02-25 02:00:56 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@collabora.com> | 2020-02-25 13:14:43 +0300 |
commit | a628a073157b59bd3af7225331f89ba5bd6abb7a (patch) | |
tree | e4a89e6f3bce35be9bfb418f9091ccf7684602b9 /drivers/gpu/drm/bridge | |
parent | 65c04add090f029abe8255f28448d9a12dd27828 (diff) | |
download | linux-a628a073157b59bd3af7225331f89ba5bd6abb7a.tar.xz |
drm/bridge: lvds-codec: Constify the drm_bridge_funcs structure
The drm_bridge_funcs structure is never modified, make it const. Making
it read-only can improve security as the structure contains function
pointers.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200224230056.2157-1-laurent.pinchart+renesas@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/lvds-codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/lvds-codec.c b/drivers/gpu/drm/bridge/lvds-codec.c index ae173d84dc8f..f7ae28ed1c14 100644 --- a/drivers/gpu/drm/bridge/lvds-codec.c +++ b/drivers/gpu/drm/bridge/lvds-codec.c @@ -50,7 +50,7 @@ static void lvds_codec_disable(struct drm_bridge *bridge) gpiod_set_value_cansleep(lvds_codec->powerdown_gpio, 1); } -static struct drm_bridge_funcs funcs = { +static const struct drm_bridge_funcs funcs = { .attach = lvds_codec_attach, .enable = lvds_codec_enable, .disable = lvds_codec_disable, |