Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4984501pxb; Mon, 15 Feb 2021 06:39:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6gHUe7Oy6udov5iz14FsjEZDP4rIxoyBcwvRj5LBubFDUP0SwfawrVg46mQsOoqRR2buv X-Received: by 2002:aa7:c991:: with SMTP id c17mr5270590edt.165.1613399982084; Mon, 15 Feb 2021 06:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613399982; cv=none; d=google.com; s=arc-20160816; b=pUufH3nwl3B+03V8eR2YyQ27sKvhy/nJkiTEqPsIEASSGORc6qpLz+3I/lLqg+The/ cbtQyFn2Cp+jL0xQrLDIgzcgOaFVFW7SPaVT3i/Tc3UOdM64X0RHxov2xBUi8dDyst4T Gx9KII75msgcIYa8z9aLCB9YDC4pukHVOliQoyHQdB3iWSbm0h1wJERiAUqVGHNBTsnR 7zBFcTFWrNw712GT8XEJp4zm98eVSOf34NIYKtNqmMAerzjU36EkKLlDSe/RvVAl8lQ9 cH1wwL7pcdWefX6FOW72O+lEV4nnqUkJRpGjKxwc71SkBx0RqYivtozM4UkIq0oZX5+Z 9VTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=J4A5zH5CChJZmRpVinxYTeTUSw0JIR8mPJQMafTirqs=; b=g0mR4PhqD/rtkIlPETUJ4JQYcsTFGKONAuv6jdA79JS6eUhN+eozrEYyOABodRWWb8 0RuEvbplqWSdCHudYLtHO8cZEVNbi8ISRM+gUxJI9Kzbn+PgxmtvnSAn9E5gOs+o3PYq xxulwYPbm25n5RTUHVIUsUgODLnEZJsR/lYysm5r5fMK+66inHy7BLhoEGFowgBxXl5o Sd+RQEMO94+8jgKmG6uaS3hU/FrDr/Y/i3PuDSowMChuPrvknNJbyTRrEt2iGd/c4KML uylwxvlDkQDZq/F3/i9pvo3yLJADxH88O3KsbBhbRmVA097StxDsK2gPxEYCtLLCaIrE P6aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si12908691ede.504.2021.02.15.06.39.18; Mon, 15 Feb 2021 06:39:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbhBOOhm (ORCPT + 99 others); Mon, 15 Feb 2021 09:37:42 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:51040 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbhBOOgP (ORCPT ); Mon, 15 Feb 2021 09:36:15 -0500 Received: from tech.aim-sportline.com ([185.56.157.72]:34080 helo=pc-ceresoli.dev.aim) by hostingweb31.netsons.net with esmtpa (Exim 4.93) (envelope-from ) id 1lBeyF-00GYMx-ON; Mon, 15 Feb 2021 15:35:27 +0100 From: Luca Ceresoli To: linux-doc@vger.kernel.org Cc: Luca Ceresoli , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Jonathan Cameron Subject: [PATCH 4/5] docs: iio: fix bullet list formatting Date: Mon, 15 Feb 2021 15:35:10 +0100 Message-Id: <20210215143511.25471-5-luca@lucaceresoli.net> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210215143511.25471-1-luca@lucaceresoli.net> References: <20210215143511.25471-1-luca@lucaceresoli.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This 2nd-level bullet list is not properly ReST-formatted and thus it gets rendered as a unique paragraph quite unreadable. Fix by adding spaces as needed. While there also swap "shift" and "repeat" so they are in the correct order. Signed-off-by: Luca Ceresoli --- Documentation/driver-api/iio/buffers.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/driver-api/iio/buffers.rst b/Documentation/driver-api/iio/buffers.rst index 9dad7c94034b..5801caf216a6 100644 --- a/Documentation/driver-api/iio/buffers.rst +++ b/Documentation/driver-api/iio/buffers.rst @@ -38,15 +38,16 @@ attributes of the following form: * :file:`type`, description of the scan element data storage within the buffer and hence the form in which it is read from user space. Format is [be|le]:[s|u]bits/storagebitsXrepeat[>>shift] . + * *be* or *le*, specifies big or little endian. * *s* or *u*, specifies if signed (2's complement) or unsigned. * *bits*, is the number of valid data bits. * *storagebits*, is the number of bits (after padding) that it occupies in the - buffer. - * *shift*, if specified, is the shift that needs to be applied prior to - masking out unused bits. + buffer. * *repeat*, specifies the number of bits/storagebits repetitions. When the - repeat element is 0 or 1, then the repeat value is omitted. + repeat element is 0 or 1, then the repeat value is omitted. + * *shift*, if specified, is the shift that needs to be applied prior to + masking out unused bits. For example, a driver for a 3-axis accelerometer with 12 bit resolution where data is stored in two 8-bits registers as follows:: @@ -123,4 +124,3 @@ More details .. kernel-doc:: include/linux/iio/buffer.h .. kernel-doc:: drivers/iio/industrialio-buffer.c :export: - -- 2.30.0