Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757464AbbIURxV (ORCPT ); Mon, 21 Sep 2015 13:53:21 -0400 Received: from smtp89.iad3a.emailsrvr.com ([173.203.187.89]:55112 "EHLO smtp89.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbbIURxT (ORCPT ); Mon, 21 Sep 2015 13:53:19 -0400 X-Sender-Id: abbotti@mev.co.uk From: Ian Abbott To: Cc: Greg Kroah-Hartman , Ian Abbott , H Hartley Sweeten , Subject: [PATCH 08/11] staging: comedi: comedidev.h: document struct comedi_lrange Date: Mon, 21 Sep 2015 18:52:53 +0100 Message-Id: <1442857976-32692-9-git-send-email-abbotti@mev.co.uk> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1442857976-32692-1-git-send-email-abbotti@mev.co.uk> References: <1442857976-32692-1-git-send-email-abbotti@mev.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedidev.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index cfb7d52..195fa57 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -606,6 +606,17 @@ extern const struct comedi_lrange range_unknown; #define GCC_ZERO_LENGTH_ARRAY 0 #endif +/** + * struct comedi_lrange - Describes a COMEDI range table + * @length: Number of entries in the range table. + * @range: Array of &struct comedi_krange, one for each range. + * + * Each element of @range[] describes the minimum and maximum physical range + * range and the type of units. Typically, the type of unit is %UNIT_volt + * (i.e. volts) and the minimum and maximum are in millionths of a volt. + * There may also be a flag that indicates the minimum and maximum are merely + * scale factors for an unknown, external reference. + */ struct comedi_lrange { int length; struct comedi_krange range[GCC_ZERO_LENGTH_ARRAY]; -- 2.5.1