Skip to content

Commit

Permalink
drm/bridge: lvds-codec: Constify the drm_bridge_funcs structure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Laurent Pinchart authored and Boris Brezillon committed Feb 25, 2020
1 parent 65c04ad commit a628a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/bridge/lvds-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a628a07

Please sign in to comment.