From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH 26/27] watchdog: Allow compile test of GPIO consumers if !GPIOLIB Date: Tue, 5 May 2015 12:31:34 -0700 Message-ID: <20150505193134.GC7771@roeck-us.net> References: <1430836404-15513-1-git-send-email-geert@linux-m68k.org> <1430843563-18615-1-git-send-email-geert@linux-m68k.org> <1430843563-18615-26-git-send-email-geert@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from bh-25.webhostbox.net ([208.91.199.152]:33025 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757420AbbEETbq (ORCPT ); Tue, 5 May 2015 15:31:46 -0400 Received: from mailnull by bh-25.webhostbox.net with sa-checked (Exim 4.85) (envelope-from ) id 1YpiZF-004BL9-MG for linux-gpio@vger.kernel.org; Tue, 05 May 2015 19:31:45 +0000 Content-Disposition: inline In-Reply-To: <1430843563-18615-26-git-send-email-geert@linux-m68k.org> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Geert Uytterhoeven Cc: Linus Walleij , Alexandre Courbot , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Wim Van Sebroeck , linux-watchdog@vger.kernel.org On Tue, May 05, 2015 at 06:32:42PM +0200, 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 on GPIOLIB if COMPILE_TEST is enabled, where > appropriate. > > Signed-off-by: Geert Uytterhoeven > Cc: Wim Van Sebroeck > Cc: linux-watchdog@vger.kernel.org Reviewed-by: Guenter Roeck