Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465AbbHESI5 (ORCPT ); Wed, 5 Aug 2015 14:08:57 -0400 Received: from mail-bn1on0118.outbound.protection.outlook.com ([157.56.110.118]:15755 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752471AbbHESI4 convert rfc822-to-8bit (ORCPT ); Wed, 5 Aug 2015 14:08:56 -0400 X-Greylist: delayed 1123 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Aug 2015 14:08:56 EDT From: Hartley Sweeten To: Ian Abbott , "driverdev-devel@linuxdriverproject.org" CC: Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] staging: comedi: improve comedi_check_chanlist() documentation Thread-Topic: [PATCH] staging: comedi: improve comedi_check_chanlist() documentation Thread-Index: AQHQz6IYSfjJ9xMy2U6TssBZxPZ1pZ39qoLQ Date: Wed, 5 Aug 2015 17:36:06 +0000 Message-ID: References: <1438794806-15873-1-git-send-email-abbotti@mev.co.uk> In-Reply-To: <1438794806-15873-1-git-send-email-abbotti@mev.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=HartleyS@visionengravers.com; x-originating-ip: [184.183.19.121] x-microsoft-exchange-diagnostics: 1;BN3PR0101MB1058;5:KPzGjwamg7OwQ3bu8A/HFe5EgMVuoWEyNUBGX3+Wc77EeVZRI0378S1bw0TcChBqr3qvUT1fanmZhTWecmu6aO+YTosvA5I8tlAWAv890CqGDp52o0gQ6ruv2MrUjjTAX9Qb2kpaFAvDZHeYXDsjvQ==;24:MJD53A6T1Rtyr8Fd9sN08i0yd7Zq2zf6wkzCQyIWH81Fyozl9IHNDdtUairoJ+Bh/HdYHnYpcapmfVENRxNP+tciBJ7ZIrjxfC3wkjs1w4s=;20:cmMrGEu/hu30H9wv67RuaC8oGja37x1lag9AeS1bny8OgMiBrVnX4Cif76Y+/k7iXDVHlDmSVaf9qKCu91XFkQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0101MB1058; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(5005006)(3002001);SRVR:BN3PR0101MB1058;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0101MB1058; x-forefront-prvs: 06592CCE58 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(24454002)(377454003)(164054003)(199003)(80792005)(81156007)(5002640100001)(66066001)(86362001)(19580395003)(2501003)(97736004)(4001540100001)(105586002)(64706001)(5001860100001)(19580405001)(2950100001)(5001770100001)(5003600100002)(189998001)(5001830100001)(92566002)(74316001)(5001960100002)(2656002)(101416001)(33656002)(122556002)(50986999)(87936001)(2900100001)(40100003)(54356999)(76176999)(68736005)(106356001)(106116001)(102836002)(46102003)(77096005)(10400500002)(62966003)(77156002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR0101MB1058;H:BN3PR0101MB1057.prod.exchangelabs.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visionengravers.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2015 17:36:06.4544 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d698601f-af92-4269-8099-fd6f11636477 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0101MB1058 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1568 Lines: 41 On Wednesday, August 05, 2015 10:13 AM, Ian Abbott wrote: > > Signed-off-by: Ian Abbott > --- > drivers/staging/comedi/range.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/range.c b/drivers/staging/comedi/range.c > index 6a393b2..ce3a58a 100644 > --- a/drivers/staging/comedi/range.c > +++ b/drivers/staging/comedi/range.c > @@ -102,7 +102,18 @@ int do_rangeinfo_ioctl(struct comedi_device *dev, > * @s: comedi_subdevice struct > * @n: number of elements in the chanlist > * @chanlist: the chanlist to validate > -*/ > + * > + * Each element consists of a channel number, a range index, an analog > + * reference type and some flags, all packed into an unsigned int. > + * > + * This checks that the channel number and range index are supported by > + * the comedi subdevice. It does not check whether the analog reference > + * type and the flags are supported. Drivers that care should check those > + * themselves. > + * > + * Return: %0 if all @chanlist elements are valid (success), > + * %-EINVAL if one or more elements are invalid. > + */ > int comedi_check_chanlist(struct comedi_subdevice *s, int n, > unsigned int *chanlist) > { Thanks, Reviewed-by: H Hartley Sweeten -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/