Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753514AbbGFPNN (ORCPT ); Mon, 6 Jul 2015 11:13:13 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:33283 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbbGFPNJ (ORCPT ); Mon, 6 Jul 2015 11:13:09 -0400 X-AuditID: cbfec7f5-f794b6d000001495-fc-559a9b0270ed Message-id: <559A9B01.9080206@samsung.com> Date: Mon, 06 Jul 2015 17:13:05 +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+NgFrrJLMWRmVeSWpSXmKPExsVy+t/xK7pMs2eFGsx/r2pxdOdEJotnt/Yy WUz5s5zJYvP8P4wWl3fNYbPY+mYdo8XuXU9ZHdg9ds66y+5x59oeNo9DhzsYPfbM/8Hq8XmT XABrFJdNSmpOZllqkb5dAlfGrgtmBfN4Kjpa2tgaGJ9wdjFyckgImEicW3KDHcIWk7hwbz1b FyMXh5DAUkaJtj+zoJxnjBKbth9n7mLk4OAV0JL4vDEKpIFFQFXi2a6NYM1sAoYSP1+8ZgKx RQUiJP6c3scKYvMKCEr8mHyPBaRVREBXYs5PJpCRzAInGSWmXLrCDFIjLBAjMb3nBFiNkICL xI6ucpAwp4CrxJnF28BGMgtYS6yctI0RwpaX2LzmLfMERoFZSDbMQlI2C0nZAkbmVYyiqaXJ BcVJ6blGesWJucWleel6yfm5mxghAf51B+PSY1aHGAU4GJV4eCNqZoYKsSaWFVfmHmKU4GBW EuF9NH1WqBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHembvehwgJpCeWpGanphakFsFkmTg4pRoY DywOvfNd4dQFN4N/fyWzdfVYuCbNn5W1qGXdllVV0gmHjfXlpxZe/LpFou3rzmjJBMUbH5cK /gjTM2krFxV9afz3hMbU93+M11/ZlPTf+OPXOdq+d9wCdWtv2D6uya100FnAu/mFh1PH0uWV X3+6ZzBOc3lsl3tiZTHbH6PyBdds3tlM7XjOqcRSnJFoqMVcVJwIABFChJlsAgAA 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/