From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932803Ab0JFRxD (ORCPT ); Wed, 6 Oct 2010 13:53:03 -0400 Received: from cassiel.sirena.org.uk ([80.68.93.111]:34877 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759113Ab0JFRxA (ORCPT ); Wed, 6 Oct 2010 13:53:00 -0400 Date: Wed, 6 Oct 2010 18:52:47 +0100 From: Mark Brown To: Linus Walleij Cc: Marek Vasut , linux-arm-kernel@lists.infradead.org, dmitry.torokhov@gmail.com, vapier@gentoo.org, pavel@ucw.cz, akpm@linux-foundation.org, khilman@deeprootsystems.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, eric.y.miao@gmail.com Subject: Re: [PATCH] Input: Make ADS7846 independent on regulator Message-ID: <20101006175247.GB2874@sirena.org.uk> References: <1280555108-27994-1-git-send-email-marek.vasut@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: Death to all fanatics! User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2010 at 07:16:05PM +0200, Linus Walleij wrote: > 2010/7/31 Marek Vasut : > > +#ifdef CONFIG_REGULATOR > Skip the #ifdef, if the regulators are configured out, there will be > a stub providing NULL for all get_regulator() calls anyway. While ifdefs on CONFIG_REGULATOR should indeed be skipped I'd not expect the stubs to be returning NULL for anything (but then as discussed elsewhere this whole approach of doing everything in the drivers is a poor one).