From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935909Ab1KJREn (ORCPT ); Thu, 10 Nov 2011 12:04:43 -0500 Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151]:58488 "EHLO ppsw-51.csi.cam.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933053Ab1KJREl (ORCPT ); Thu, 10 Nov 2011 12:04:41 -0500 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Message-ID: <4EBC0418.2040005@cam.ac.uk> Date: Thu, 10 Nov 2011 17:04:24 +0000 From: Jonathan Cameron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1 MIME-Version: 1.0 To: Mark Brown CC: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, guenter.roeck@ericsson.com, khali@linux-fr.org, dmitry.torokhov@gmail.com, gregkh@suse.de, alan@lxorguk.ukuu.org.uk, arnd@arndb.de, linus.walleij@linaro.org, lars@metafoo.de, maxime.ripard@free-electrons.com, lm-sensors@lm-sensors.org, thomas.petazzoni@free-electrons.com, zdevai@gmail.com Subject: Re: [PATCH 3/5] IIO:CORE add in kernel interface mapping and getting IIO channels. References: <1320680681-5635-1-git-send-email-jic23@kernel.org> <1320680681-5635-4-git-send-email-jic23@kernel.org> <20111110132506.GF3832@opensource.wolfsonmicro.com> In-Reply-To: <20111110132506.GF3832@opensource.wolfsonmicro.com> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10/2011 01:25 PM, Mark Brown wrote: > On Mon, Nov 07, 2011 at 03:44:39PM +0000, Jonathan Cameron wrote: >> From: Jonathan Cameron >> >> Two elements here: >> * Map as defined in include/linux/iio/inkern.h >> * Matching code to actually get the iio_dev and channel >> that we want from the global list of IIO devices. > > I've not read it thoroughly but this certainly this looks sensible from > an external interface point of view, I'd expect that issues can be > worked through incrementally. > > Reviewed-by: Mark Brown Thanks. > >> +extern struct list_head iio_map_list; > > It's surprising that this is part of the external interface of IIO > rather than something hidden within the implementation. You are quite correct. I was being lazy and had that one element that didn't fit in any headers. I'lll add a trivial inkern-core.h to handle that one bit.