]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Factor mmc_test code in POST code
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 18 Feb 2017 03:19:10 +0000 (14:19 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:17:30 +0000 (13:17 +1000)
commitf97132e2985ea92872a4ca39347d3aee3fa77637
tree344dd5903548929f4afa999196fa12362f459138
parent753a5f1a9ec91d1a2ddae8b5944582848beb1483
drm/ast: Factor mmc_test code in POST code

There's a some duplication for what's essentially copies of
two loops, so factor it. The upcoming AST2500 POST code adds
more of them. Also cleanup return types for the test functions,
most of them return a boolean, some return a u32.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_post.c