From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [RFC 0/5] Sensor drivers for OMAP3430SDP and LDP camera Date: Wed, 4 Mar 2009 16:28:00 -0800 Message-ID: <200903041628.00828.david-b@pacbell.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-media-owner@vger.kernel.org To: "Aguirre Rodriguez, Sergio Alberto" Cc: "linux-media@vger.kernel.org" , "linux-omap@vger.kernel.org" , Sakari Ailus , "Tuukka.O Toivonen" , Hiroshi DOYU , "DongSoo(Nathaniel) Kim" , MiaoStanley , "Nagalla, Hari" , "Hiremath, Vaibhav" , "Lakhani, Amish" , "Menon, Nishanth" List-Id: linux-omap@vger.kernel.org On Wednesday 04 March 2009, Aguirre Rodriguez, Sergio Alberto wrote: > > > I'd much rather see these drivers just use the regulator > > framework to switch any sensor power rails on/off. > > Hi, > > Sounds interesting. > > Is there any documentation on how to use this? Documentation/DocBook/regulator.tmpl Documentation/power/regulator/* I don't quite know how clear that is; the framework is still sorting itself out, a bit. The 2.6.30 kernel has some updates to programming interfaces, few of which should matter to any sensor code ... sensors would be "consumers" in that framework, calling regulator_get() and friends. The tricksy bits would be coupling the regulators to the sensor device nodes in the board-specfiic setup code. At some point I expect to see some cases where that setup needs framework updates, but so far that hasn't happened. - Dave