Skip to content

Commit

Permalink
drm/mediatek: Cleanup coding style in mediatek a bit
Browse files Browse the repository at this point in the history
This code change is to make code bit more readable.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
  • Loading branch information
Bernard Zhao authored and Chun-Kuang Hu committed May 20, 2020
1 parent 9a67bc4 commit 3cda3d3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/gpu/drm/mediatek/mtk_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,10 @@ static void mtk_hdmi_hw_send_info_frame(struct mtk_hdmi *hdmi, u8 *buffer,
u8 checksum;
int ctrl_frame_en = 0;

frame_type = *buffer;
buffer += 1;
frame_ver = *buffer;
buffer += 1;
frame_len = *buffer;
buffer += 1;
checksum = *buffer;
buffer += 1;
frame_type = *buffer++;
frame_ver = *buffer++;
frame_len = *buffer++;
checksum = *buffer++;
frame_data = buffer;

dev_dbg(hdmi->dev,
Expand Down

0 comments on commit 3cda3d3

Please sign in to comment.