* [PATCH v2] docs: iio: backend: use literal block for commands
@ 2026-09-16 18:07 Randy Dunlap
2026-09-17 6:34 ` Andy Shevchenko
2026-09-17 8:46 ` Nuno Sá
0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2026-09-16 18:07 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Nuno Sa, Olivier Moysan, Jonathan Cameron,
David Lechner, Andy Shevchenko, linux-iio, Jonathan Corbet,
Shuah Khan, linux-doc
Use literal blocks for 'cat' and 'echo' commands to separate them from
the surrounding text. Otherwise the lines run together, without any
clear break before or after the commands.
Use shell comment style to go along with the shell commands.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
v2: use shell comment style (Andy)
Cc: Nuno Sa <nuno.sa@analog.com>
Cc: Olivier Moysan <olivier.moysan@foss.st.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: David Lechner <dlechner@baylibre.com>
Cc: Andy Shevchenko <andy@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-doc@vger.kernel.org
Documentation/ABI/testing/debugfs-iio-backend | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- linux-next-20260914.orig/Documentation/ABI/testing/debugfs-iio-backend
+++ linux-next-20260914/Documentation/ABI/testing/debugfs-iio-backend
@@ -8,13 +8,13 @@ What: /sys/kernel/debug/iio/iio:deviceX
KernelVersion: 6.11
Contact: linux-iio@vger.kernel.org
Description:
- Directly access the registers of backend Y. Typical usage is:
+ Directly access the registers of backend Y. Typical usage is::
- Reading address 0x50
- echo 0x50 > direct_reg_access
- cat direct_reg_access
+ # Reading address 0x50
+ echo 0x50 > direct_reg_access
+ cat direct_reg_access
- Writing address 0x50
- echo 0x50 0x3 > direct_reg_access
- //readback address 0x50
- cat direct_reg_access
+ # Writing address 0x50
+ echo 0x50 0x3 > direct_reg_access
+ # readback address 0x50
+ cat direct_reg_access
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: iio: backend: use literal block for commands
2026-09-16 18:07 [PATCH v2] docs: iio: backend: use literal block for commands Randy Dunlap
@ 2026-09-17 6:34 ` Andy Shevchenko
2026-09-17 8:46 ` Nuno Sá
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-09-17 6:34 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Nuno Sa, Olivier Moysan, Jonathan Cameron,
David Lechner, Andy Shevchenko, linux-iio, Jonathan Corbet,
Shuah Khan, linux-doc
On Wed, Sep 16, 2026 at 11:07:39AM -0700, Randy Dunlap wrote:
> Use literal blocks for 'cat' and 'echo' commands to separate them from
> the surrounding text. Otherwise the lines run together, without any
> clear break before or after the commands.
>
> Use shell comment style to go along with the shell commands.
Reviewed-by: Andy Shevchenko <andy@kernel.org>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: iio: backend: use literal block for commands
2026-09-16 18:07 [PATCH v2] docs: iio: backend: use literal block for commands Randy Dunlap
2026-09-17 6:34 ` Andy Shevchenko
@ 2026-09-17 8:46 ` Nuno Sá
1 sibling, 0 replies; 3+ messages in thread
From: Nuno Sá @ 2026-09-17 8:46 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Olivier Moysan, Jonathan Cameron, David Lechner,
Andy Shevchenko, linux-iio, Jonathan Corbet, Shuah Khan,
linux-doc
On Wed, Sep 16, 2026 at 11:07:39AM -0700, Randy Dunlap wrote:
> Use literal blocks for 'cat' and 'echo' commands to separate them from
> the surrounding text. Otherwise the lines run together, without any
> clear break before or after the commands.
>
> Use shell comment style to go along with the shell commands.
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> v2: use shell comment style (Andy)
>
> Cc: Nuno Sa <nuno.sa@analog.com>
> Cc: Olivier Moysan <olivier.moysan@foss.st.com>
> Cc: Jonathan Cameron <jic23@kernel.org>
> Cc: David Lechner <dlechner@baylibre.com>
> Cc: Andy Shevchenko <andy@kernel.org>
> Cc: linux-iio@vger.kernel.org
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
> Cc: linux-doc@vger.kernel.org
>
> Documentation/ABI/testing/debugfs-iio-backend | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> --- linux-next-20260914.orig/Documentation/ABI/testing/debugfs-iio-backend
> +++ linux-next-20260914/Documentation/ABI/testing/debugfs-iio-backend
> @@ -8,13 +8,13 @@ What: /sys/kernel/debug/iio/iio:deviceX
> KernelVersion: 6.11
> Contact: linux-iio@vger.kernel.org
> Description:
> - Directly access the registers of backend Y. Typical usage is:
> + Directly access the registers of backend Y. Typical usage is::
>
> - Reading address 0x50
> - echo 0x50 > direct_reg_access
> - cat direct_reg_access
> + # Reading address 0x50
> + echo 0x50 > direct_reg_access
> + cat direct_reg_access
>
> - Writing address 0x50
> - echo 0x50 0x3 > direct_reg_access
> - //readback address 0x50
> - cat direct_reg_access
> + # Writing address 0x50
> + echo 0x50 0x3 > direct_reg_access
> + # readback address 0x50
> + cat direct_reg_access
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-17 8:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 18:07 [PATCH v2] docs: iio: backend: use literal block for commands Randy Dunlap
2026-09-17 6:34 ` Andy Shevchenko
2026-09-17 8:46 ` Nuno Sá
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®