summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge
diff options
context:
space:
mode:
authorYakir Yang <ykk@rock-chips.com>2015-03-31 23:55:59 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-04-01 10:54:13 +0100
commitca44b9d16423e5c8bd75328a217e5ed8d30c5b1d (patch)
treef65ab6cd97c9d950f87d9d9d5977e3ded0fdeec4 /drivers/gpu/drm/bridge
parent622494a3560b13e05c9f2049bfab8e7fb12c67a2 (diff)
downloadtalos-obmc-linux-ca44b9d16423e5c8bd75328a217e5ed8d30c5b1d.tar.gz
talos-obmc-linux-ca44b9d16423e5c8bd75328a217e5ed8d30c5b1d.zip
drm: bridge/dw_hdmi: fixed codec style
Using a local struct pointer to reduce one level of indirection makes the code slightly more readable. Signed-off-by: Yakir Yang <ykk@rock-chips.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r--drivers/gpu/drm/bridge/dw_hdmi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
index cca1c3d165e2..7943cedd63ce 100644
--- a/drivers/gpu/drm/bridge/dw_hdmi.c
+++ b/drivers/gpu/drm/bridge/dw_hdmi.c
@@ -755,10 +755,10 @@ static int hdmi_phy_configure(struct dw_hdmi *hdmi, unsigned char prep,
{
unsigned res_idx, i;
u8 val, msec;
- const struct dw_hdmi_mpll_config *mpll_config =
- hdmi->plat_data->mpll_cfg;
- const struct dw_hdmi_curr_ctrl *curr_ctrl = hdmi->plat_data->cur_ctr;
- const struct dw_hdmi_sym_term *sym_term = hdmi->plat_data->sym_term;
+ const struct dw_hdmi_plat_data *plat_data = hdmi->plat_data;
+ const struct dw_hdmi_mpll_config *mpll_config = plat_data->mpll_cfg;
+ const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data->cur_ctr;
+ const struct dw_hdmi_sym_term *sym_term = plat_data->sym_term;
if (prep)
return -EINVAL;
OpenPOWER on IntegriCloud