drm/rockchip: dw-mipi-dsi: fix command header writes
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:47 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:49 +0000 (14:48 -0500)
commitd3852c212dffdb98fb8e8b8ff876fcaa61b33307
tree7abd6a9eb310a5bacb1c9e464b1c305f354428d8
parent2ba0f4a4c3494daa682e5f67bf279b051a906990
drm/rockchip: dw-mipi-dsi: fix command header writes

In a couple of places here we use "val" for the value that is about to
be written to a register but then reuse the same variable for the value
of a status register before we get around to writing it.  Rename the
value to be written to so that we write the value we intend to and not
what we have just read from the status register.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-5-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c