projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abcb876
)
drm/sun4i: tcon: Make tcon_get_clk_delay mode argument const
author
Maxime Ripard
<
[email protected]
>
Tue, 17 Oct 2017 09:06:11 +0000
(11:06 +0200)
committer
Maxime Ripard
<
[email protected]
>
Tue, 17 Oct 2017 17:49:12 +0000
(19:49 +0200)
The drm_display_mode pointer can be mark const, so let's do it.
Reviewed-by: Chen-Yu Tsai <
[email protected]
>
Signed-off-by: Maxime Ripard <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/e6f92f126640aa6de639386f9b4677db3d8bb37b.1508231063.git-series.maxime.ripard@free-electrons.com
drivers/gpu/drm/sun4i/sun4i_tcon.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sun4i/sun4i_tcon.c
b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 54e1796d295320ea7e5f50051ae06a8ed4546a8d..9b5b21ad837896c395af4f782afb65337e5b7af4 100644
(file)
--- a/
drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/
drivers/gpu/drm/sun4i/sun4i_tcon.c
@@
-146,7
+146,7
@@
void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel,
}
EXPORT_SYMBOL(sun4i_tcon_set_mux);
-static int sun4i_tcon_get_clk_delay(struct drm_display_mode *mode,
+static int sun4i_tcon_get_clk_delay(
const
struct drm_display_mode *mode,
int channel)
{
int delay = mode->vtotal - mode->vdisplay;