Skip to content

Commit

Permalink
drm/exynos: mixer: simplify loop in vp_win_reset()
Browse files Browse the repository at this point in the history
A simple while loop should do the same here.

Signed-off-by: Tobias Jakobi <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
  • Loading branch information
tobiasjakobi authored and daeinki committed Sep 30, 2016
1 parent adeb6f4 commit a696394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/exynos/exynos_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,10 @@ static void mixer_graph_buffer(struct mixer_context *ctx,
static void vp_win_reset(struct mixer_context *ctx)
{
struct mixer_resources *res = &ctx->mixer_res;
int tries = 100;
unsigned int tries = 100;

vp_reg_write(res, VP_SRESET, VP_SRESET_PROCESSING);
for (tries = 100; tries; --tries) {
while (tries--) {
/* waiting until VP_SRESET_PROCESSING is 0 */
if (~vp_reg_read(res, VP_SRESET) & VP_SRESET_PROCESSING)
break;
Expand Down

0 comments on commit a696394

Please sign in to comment.