From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp119.sbc.mail.sp1.yahoo.com ([69.147.64.92]:38853 "HELO smtp119.sbc.mail.sp1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754030AbZCEA2F (ORCPT ); Wed, 4 Mar 2009 19:28:05 -0500 From: David Brownell To: "Aguirre Rodriguez, Sergio Alberto" Subject: Re: [RFC 0/5] Sensor drivers for OMAP3430SDP and LDP camera Date: Wed, 4 Mar 2009 16:28:00 -0800 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" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903041628.00828.david-b@pacbell.net> Sender: linux-media-owner@vger.kernel.org List-ID: 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