[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150605112141.GB17776@ulmo.nvidia.com>
Date: Fri, 5 Jun 2015 13:21:43 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Alexandre Courbot <gnurou@...il.com>,
Arnd Bergmann <arnd@...db.de>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org
Subject: Re: [PATCH 02/27] drm/bridge: ps8622: #include
<linux/gpio/consumer.h>, depend on GPIOLIB
On Tue, May 05, 2015 at 06:32:18PM +0200, Geert Uytterhoeven wrote:
> If GPIOLIB=n and asm-generic/gpio.h is not used:
>
> drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_pre_enable’:
> drivers/gpu/drm/bridge/ps8622.c:368: error: implicit declaration of function ‘gpiod_set_value’
> drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_probe’:
> drivers/gpu/drm/bridge/ps8622.c:584: error: implicit declaration of function ‘devm_gpiod_get’
> drivers/gpu/drm/bridge/ps8622.c:584: warning: assignment makes pointer from integer without a cast
> drivers/gpu/drm/bridge/ps8622.c:590: error: implicit declaration of function ‘gpiod_direction_output’
> drivers/gpu/drm/bridge/ps8622.c:596: warning: assignment makes pointer from integer without a cast
>
> Add the missing #include <linux/gpio/consumer.h> to fix this.
>
> As the resulting driver won't work with GPIOLIB=n anyway, make
> DRM_PS8622 depend on GPIOLIB || COMPILE_TEST.
>
> Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
> Cc: David Airlie <airlied@...ux.ie>
> Cc: dri-devel@...ts.freedesktop.org
> ---
> drivers/gpu/drm/bridge/Kconfig | 4 ++--
> drivers/gpu/drm/bridge/ps8622.c | 1 +
> 2 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks. With the same modifications as patch 1/27. I wonder if
there's any reason to keep the linux/gpio.h include, since consumer.h
seems to expose all the API that the drivers need.
Thierry
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists