Return-Path: Date: Wed, 23 Feb 2011 09:19:39 +0100 From: Jean Delvare To: Mark Brown Cc: Jonathan Cameron , Andrew Chew , chinyeow.sim.xt@renesas.com, gregkh@suse.de, devel@driverdev.osuosl.org, linux-iio@vger.kernel.org Subject: Re: [RFC PATCH] staging: ak8975: add platform data. Message-ID: <20110223091939.3ba0b190@endymion.delvare> In-Reply-To: <20110222215552.GA28740@sirena.org.uk> References: <1297764627-21077-1-git-send-email-chinyeow.sim.xt@renesas.com> <643E69AA4436674C8F39DCC2C05F763816BD96CFB5@HQMAIL03.nvidia.com> <4D628E66.5090900@cam.ac.uk> <20110222102955.52be2b94@endymion.delvare> <4D63AD81.5080903@cam.ac.uk> <20110222215552.GA28740@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-ID: On Tue, 22 Feb 2011 21:55:55 +0000, Mark Brown wrote: > On Tue, Feb 22, 2011 at 12:35:13PM +0000, Jonathan Cameron wrote: > > > I thought this actually allowed for gpio's but right now can't figure out how > > to handle them. What it definitely does handle cleanly is devices with multiple > > irq's. > > > You basically get to query for resources by name so can pass lots of 'platform data' > > type stuff without having to define a specific structure for passing it in. > > There's no standard support for GPIOs as resources - this is always done > using platform data these days. Would it make sense to add this? I have no opinion on the question, not being a big user of GPIO, just wondering. -- Jean Delvare