projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adeb6f4
)
drm/exynos: mixer: simplify loop in vp_win_reset()
author
Tobias Jakobi
<
[email protected]
>
Thu, 22 Sep 2016 14:57:19 +0000
(16:57 +0200)
committer
Inki Dae
<
[email protected]
>
Fri, 30 Sep 2016 15:39:33 +0000
(
00:39
+0900)
A simple while loop should do the same here.
Signed-off-by: Tobias Jakobi <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_mixer.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_mixer.c
b/drivers/gpu/drm/exynos/exynos_mixer.c
index eff85891c4dbc0badb5a462b8926ddf9fa1f461e..bea3cbd39a2531ad9a91191e2a060cbb44faac75 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/
drivers/gpu/drm/exynos/exynos_mixer.c
@@
-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;