]> 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)
commit683619044986b697833a02ccd37a9480827c5fc0
tree344dd5903548929f4afa999196fa12362f459138
parent4785d37afbec457a4aa40104a8fabe8dadd2abcd
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