Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751658AbbGMMkB (ORCPT ); Mon, 13 Jul 2015 08:40:01 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:46631 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbbGMMj7 (ORCPT ); Mon, 13 Jul 2015 08:39:59 -0400 X-AuditID: cbfec7f5-f794b6d000001495-78-55a3b19aa5c6 Message-id: <55A3B199.7010308@samsung.com> Date: Mon, 13 Jul 2015 14:39:53 +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: Bryan Wu , Richard Purdie , Linus Walleij , linux-leds@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: Allow compile test of LEDS_AAT1290 and LEDS_KTD2692 if !GPIOLIB References: <1436190154-11517-1-git-send-email-geert@linux-m68k.org> In-reply-to: <1436190154-11517-1-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+NgFrrFLMWRmVeSWpSXmKPExsVy+t/xa7qzNi4ONXiw28Di6M6JTBbPbu1l spjyZzmTxeb5fxgtLu+aw2ax9c06Rovdu56yOrB77Jx1l93jzrU9bB6HDncweuyZ/4PV4/Mm uQDWKC6blNSczLLUIn27BK6MXRfMCubxVHS0tLE1MD7h7GLk5JAQMJF43fWBDcIWk7hwbz2Q zcUhJLCUUWJCxwpmCOcZo8SHZ+dYQKp4BbQk1q64yApiswioShxaMIUJxGYTMJT4+eI1mC0q ECHx5/Q+Voh6QYkfk+8B9XJwiAjoSsz5yQQyk1ngJKPElEtXmEFqhAViJKb3nACrERJwkdjR VQ4S5hRwlTizeBvYSGYBa4mVk7YxQtjyEpvXvGWewCgwC8mGWUjKZiEpW8DIvIpRNLU0uaA4 KT3XSK84Mbe4NC9dLzk/dxMjJMS/7mBceszqEKMAB6MSD2/DlkWhQqyJZcWVuYcYJTiYlUR4 c4oXhwrxpiRWVqUW5ccXleakFh9ilOZgURLnnbnrfYiQQHpiSWp2ampBahFMlomDU6qBMfDj tyeXO3ed2/3HeVnD65BoyzO/blYKX5vNvVltE4fWQY55mrVZvNLdScd6rW5ahz+zOzx1yYTK XZkpoXwS2WsmP6zPWGo9QzOmf8qKxXGnQhtfekWaX+nWYHjF8vpI4oWr7r0xj0svZ+3TSrb+ 4/d7x/T7vUq+nhsd2K9U7oz/VWf5+aaQuBJLcUaioRZzUXEiADHJX35tAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 52 Hi Geert, Thanks for the patch. On 07/06/2015 03:42 PM, 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. > > If COMPILE_TEST is enabled, relax the dependency on GPIOLIB for the > recently introduced symbols LEDS_AAT1290 and LEDS_KTD2692. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/leds/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > index 94eced66d877182b..cf0248b8dbb9c023 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -43,7 +43,7 @@ config LEDS_AAT1290 > tristate "LED support for the AAT1290" > depends on LEDS_CLASS_FLASH > depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS > - depends on GPIOLIB > + depends on GPIOLIB || COMPILE_TEST > depends on OF > depends on PINCTRL > help > @@ -543,7 +543,8 @@ config LEDS_MENF21BMC > > config LEDS_KTD2692 > tristate "LED support for KTD2692 flash LED controller" > - depends on LEDS_CLASS_FLASH && GPIOLIB && OF > + depends on LEDS_CLASS_FLASH && OF > + depends on GPIOLIB || COMPILE_TEST > help > This option enables support for KTD2692 LED flash connected > through ExpressWire interface. > 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/