aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-07 06:09:42 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-12 06:40:22 -0500
commit7cb6a87a88be5d730e7ae14acb6303f3870fe70d (patch)
treec078d620122b071840d626541df97e8fb3773536 /drivers/video
parent6a3d03e93e54a1780131c714de383d1782131a4d (diff)
OMAPDSS: DSI: use struct copy instead of individual field copy
Now that dsi_clock_info only contains information about the PLL, we can just copy the whole struct when storing the clock information, instead of copying individual fields. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/dss/dsi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dsi.c b/drivers/video/fbdev/omap2/dss/dsi.c
index 37517e407f37..b0a3c9ed1341 100644
--- a/drivers/video/fbdev/omap2/dss/dsi.c
+++ b/drivers/video/fbdev/omap2/dss/dsi.c
@@ -1540,17 +1540,7 @@ int dsi_pll_set_clock_div(struct platform_device *dsidev,
1540 1540
1541 DSSDBG("DSI PLL clock config starts"); 1541 DSSDBG("DSI PLL clock config starts");
1542 1542
1543 dsi->current_cinfo.fint = cinfo->fint; 1543 dsi->current_cinfo = *cinfo;
1544 dsi->current_cinfo.clkin4ddr = cinfo->clkin4ddr;
1545 dsi->current_cinfo.dsi_pll_hsdiv_dispc_clk =
1546 cinfo->dsi_pll_hsdiv_dispc_clk;
1547 dsi->current_cinfo.dsi_pll_hsdiv_dsi_clk =
1548 cinfo->dsi_pll_hsdiv_dsi_clk;
1549
1550 dsi->current_cinfo.regn = cinfo->regn;
1551 dsi->current_cinfo.regm = cinfo->regm;
1552 dsi->current_cinfo.regm_dispc = cinfo->regm_dispc;
1553 dsi->current_cinfo.regm_dsi = cinfo->regm_dsi;
1554 1544
1555 DSSDBG("DSI Fint %ld\n", cinfo->fint); 1545 DSSDBG("DSI Fint %ld\n", cinfo->fint);
1556 1546