drm/msm/dsi: Don't store dsi host mode_flags in msm_dsi
authorSean Paul <seanpaul@chromium.org>
Mon, 17 Jun 2019 20:12:53 +0000 (16:12 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 20 Jun 2019 18:42:09 +0000 (14:42 -0400)
commit09951aaa7229b253b0e00979d6c6d17b20e16fe4
tree5dcaaab988f34c9c14ccc1db9ef2f4b5ca18fbde
parente3a91f893cabd684a6cd63599425118308defc06
drm/msm/dsi: Don't store dsi host mode_flags in msm_dsi

It's a bit dangerous to store the flags in msm_dsi since there's no way to
tell when they're populated. Fortunately the only place that uses them
is the same place that fills them. So just use a local variable and
delete the struct member.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190617201301.133275-5-sean@poorly.run
drivers/gpu/drm/msm/dsi/dsi.h
drivers/gpu/drm/msm/dsi/dsi_manager.c