Files
linux-cryptodev-2.6/drivers/gpu/drm/mediatek
Dan Carpenter f752413e26 drm/mediatek: fix a timeout loop
This code causes a static checker warning because it treats "i == 0" as
a timeout but, because it's a post-op, the loop actually ends with "i"
set to -1.  Philipp Zabel points out that it would be cleaner to use
readl_poll_timeout() instead.

Fixes: 2189881683 ("drm/mediatek: add dsi transfer function")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
2017-05-22 13:49:11 +08:00
..
2016-08-11 08:42:01 +02:00
2016-06-16 16:30:38 +02:00
2016-06-16 16:30:38 +02:00
2016-06-16 16:30:38 +02:00
2016-12-15 14:55:34 +02:00
2017-05-22 13:49:11 +08:00
2016-06-16 16:30:38 +02:00
2016-06-16 16:30:38 +02:00