[PATCH 08/12] drm/ast: Factor mmc_test code in POST code

Joel Stanley joel at jms.id.au
Fri Feb 24 13:21:55 AEDT 2017


On Fri, Feb 24, 2017 at 9:23 AM, Benjamin Herrenschmidt
<benh at kernel.crashing.org> wrote:
> 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 at kernel.crashing.org>

Acked-by: Joel Stanley <joel at jms.id.au>

> --
>
> v2. - Keep the split between the "test" and "test2" functions
>       as they have a different exit condition in the loop and
>       a different return type.
>     - Fix the return types accross the call chain
> ---
>  drivers/gpu/drm/ast/ast_post.c | 82 ++++++++++++++++--------------------------
>  1 file changed, 31 insertions(+), 51 deletions(-)


More information about the Linuxppc-dev mailing list