Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752730AbbEGMPf (ORCPT ); Thu, 7 May 2015 08:15:35 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:27963 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbbEGMPa (ORCPT ); Thu, 7 May 2015 08:15:30 -0400 X-AuditID: cbfec7f5-f794b6d000001495-2a-554b5760080c Message-id: <554B575F.7090101@samsung.com> Date: Thu, 07 May 2015 14:15:27 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: Geert Uytterhoeven Cc: Linus Walleij , Alexandre Courbot , Bryan Wu , Richard Purdie , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB References: <1430986090-7243-1-git-send-email-geert@linux-m68k.org> <1430986090-7243-4-git-send-email-geert@linux-m68k.org> In-reply-to: <1430986090-7243-4-git-send-email-geert@linux-m68k.org> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t/xy7oJ4d6hBtsO6Fn8nXSM3eLozolM Fs9u7WWyOPfqEYvFlD/LmSw2z//DaHF51xw2i61v1jFa7N71lNWB0+P3r0mMHjtn3WX3uHNt D5vHocMdjB575v9g9fi8SS6ALYrLJiU1J7MstUjfLoEr48GvySwFHVwV02/6NTD2cHQxcnBI CJhIfJgX08XICWSKSVy4t54NxBYSWMooseNXWhcjF5D9jFFi/oqprCAJXgEtiRXdt5hAbBYB VYmm2a/ZQWw2AUOJny9eg8VFBSIk/pzeB1UvKPFj8j0WkF0iAroSc34ygcxkFpjEJPFhyRtG kBphAQ+JrU9OMUIsrpU4t38G2BGcAi4SH771gc1hFrCWWDlpGyOELS+xec1b5gmMArOQrJiF pGwWkrIFjMyrGEVTS5MLipPSc430ihNzi0vz0vWS83M3MULC/+sOxqXHrA4xCnAwKvHwrrDz DhViTSwrrsw9xCjBwawkwns6DCjEm5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJJanZ qakFqUUwWSYOTqkGRv0D0h5z3uoV5sVxXFvLHzeFuSHf2UT+SdfvsBvG7wpeF0ju0ktlyM5o 1AsIzq3LC3yz4YO9e9hpxsa4aLV1nfPbzNavzlz34v+6+FtBQloNn0/6Pn+VfvXMpC+S7FFh tsrGttdiTlXt0Dh2wLK86c5l7ZcOuhJl7lO/Bz1R2DBRvsiO09lDiaU4I9FQi7moOBEA4UdE n3sCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1497 Lines: 41 On 05/07/2015 10:08 AM, Geert Uytterhoeven 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 of LEDS_GPIO on GPIOLIB if COMPILE_TEST is > enabled. > > Signed-off-by: Geert Uytterhoeven > --- > This could be folded in "[PATCH 09/27] leds: Allow compile test of GPIO > consumers if !GPIOLIB" once its dependencies are satisfied. > --- > drivers/leds/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > index 8161cddc3f8d597a..1f6cb38335b52c3c 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -182,7 +182,7 @@ config LEDS_PCA9532_GPIO > config LEDS_GPIO > tristate "LED Support for GPIO connected LEDs" > depends on LEDS_CLASS > - depends on GPIOLIB > + depends on GPIOLIB || COMPILE_TEST > help > This option enables support for the LEDs connected to GPIO > outputs. To be useful the particular board must have LEDs > Acked-by: Jacek Anaszewski -- Best Regards, Jacek Anaszewski -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/