Re: [PATCH] w1: Allow compile test of GPIO consumers if !GPIOLIB

From: Linus Walleij
Date: Tue Jun 26 2018 - 03:47:24 EST


On Thu, Jun 21, 2018 at 8:54 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:

> The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
> not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
> functionality only, can still be compiled if GPIOLIB is not enabled.
>
> Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
> appropriate.
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Acked-by: Evgeniy Polyakov <zbr@xxxxxxxxxxx>
> ---
> v3:

Patch applied to the GPIO tree.

Yours,
Linus Walleij