mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
622494a356
commit
ca44b9d164
1 changed files with 4 additions and 4 deletions
|
@ -755,10 +755,10 @@ static int hdmi_phy_configure(struct dw_hdmi *hdmi, unsigned char prep,
|
||||||
{
|
{
|
||||||
unsigned res_idx, i;
|
unsigned res_idx, i;
|
||||||
u8 val, msec;
|
u8 val, msec;
|
||||||
const struct dw_hdmi_mpll_config *mpll_config =
|
const struct dw_hdmi_plat_data *plat_data = hdmi->plat_data;
|
||||||
hdmi->plat_data->mpll_cfg;
|
const struct dw_hdmi_mpll_config *mpll_config = plat_data->mpll_cfg;
|
||||||
const struct dw_hdmi_curr_ctrl *curr_ctrl = hdmi->plat_data->cur_ctr;
|
const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data->cur_ctr;
|
||||||
const struct dw_hdmi_sym_term *sym_term = hdmi->plat_data->sym_term;
|
const struct dw_hdmi_sym_term *sym_term = plat_data->sym_term;
|
||||||
|
|
||||||
if (prep)
|
if (prep)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue