diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-09 23:41:05 +0300 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-01-12 13:06:15 +0300 |
commit | 0f5d32617246810d00dae08c51069873a77b60d1 (patch) | |
tree | 3b7f2ab42112649bd4c23d4b2d801049905526ea /drivers | |
parent | bd29823e05ac5ba81e9f6c8ca51f040c8b47a741 (diff) | |
download | linux-0f5d32617246810d00dae08c51069873a77b60d1.tar.xz |
drm/bridge: adv7533: make array clock_div_by_lanes static const
Don't populate the read-only array clock_div_by_lanes on the stack but
instead it static const. Also makes the object code a little smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220109204105.51878-1-colin.i.king@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/bridge/adv7511/adv7533.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7533.c b/drivers/gpu/drm/bridge/adv7511/adv7533.c index eb7579dec40a..ef6270806d1d 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7533.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7533.c @@ -29,7 +29,7 @@ static void adv7511_dsi_config_timing_gen(struct adv7511 *adv) struct mipi_dsi_device *dsi = adv->dsi; struct drm_display_mode *mode = &adv->curr_mode; unsigned int hsw, hfp, hbp, vsw, vfp, vbp; - u8 clock_div_by_lanes[] = { 6, 4, 3 }; /* 2, 3, 4 lanes */ + static const u8 clock_div_by_lanes[] = { 6, 4, 3 }; /* 2, 3, 4 lanes */ hsw = mode->hsync_end - mode->hsync_start; hfp = mode->hsync_start - mode->hdisplay; |