From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: Query: Regulator framework in EHCI driver Date: Wed, 4 Nov 2009 14:48:11 +0000 Message-ID: <20091104144811.GB30644@rakim.wolfsonmicro.main> References: <19F8576C6E063C45BE387C64729E73940436EEB912@dbde02.ent.ti.com> <20091103153046.GA30320@nokia.com> <19F8576C6E063C45BE387C64729E73940436F9375B@dbde02.ent.ti.com> <20091104133922.GD25044@sirena.org.uk> <5A47E75E594F054BAF48C5E4FC4B92AB030A67DE6A@dbde02.ent.ti.com> <20091104144126.GA30644@rakim.wolfsonmicro.main> <5A47E75E594F054BAF48C5E4FC4B92AB030A67DE7F@dbde02.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from opensource.wolfsonmicro.com ([80.75.67.52]:57325 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756012AbZKDOsH (ORCPT ); Wed, 4 Nov 2009 09:48:07 -0500 Content-Disposition: inline In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB030A67DE7F@dbde02.ent.ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Gadiyar, Anand" Cc: "Gupta, Ajay Kumar" , "felipe.balbi@nokia.com" , "linux-omap@vger.kernel.org" , "Aggarwal, Anuj" On Wed, Nov 04, 2009 at 08:15:02PM +0530, Gadiyar, Anand wrote: > So, if a board does not need a regulator at all, then the APIs do nothing? If the kernel is built without regulator API support then the get, release, enable and disable functions are stubbed out to always report success. If the kernel has been built with regulator support then generally a fixed voltage regulator should be defined by the board. The expectation is that if the regulator API is of no use on a board since there are no regulators set up then it'll be disabled in Kconfig.