[bootlin/training-materials updates] master: kernel: i2c-comm: Better presentation in the book (c0268f21)

Miquel Raynal miquel.raynal at bootlin.com
Mon Jul 12 20:08:09 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/c0268f217922c76f10c746c729f7d7604f0132cc

>---------------------------------------------------------------

commit c0268f217922c76f10c746c729f7d7604f0132cc
Author: Miquel Raynal <miquel.raynal at bootlin.com>
Date:   Mon Jul 12 20:08:09 2021 +0200

    kernel: i2c-comm: Better presentation in the book
    
    This code exerpt does not show well in the lab book, let's use spaces
    instead of tabs and move the comments on new lines to enhance the
    presentation.
    
    Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>


>---------------------------------------------------------------

c0268f217922c76f10c746c729f7d7604f0132cc
 labs/kernel-i2c-communication/kernel-i2c-communication.tex | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/labs/kernel-i2c-communication/kernel-i2c-communication.tex b/labs/kernel-i2c-communication/kernel-i2c-communication.tex
index 70edf27e..c4292164 100644
--- a/labs/kernel-i2c-communication/kernel-i2c-communication.tex
+++ b/labs/kernel-i2c-communication/kernel-i2c-communication.tex
@@ -117,10 +117,12 @@ offsets are declared and what values they are given:
 {\small
 \begin{verbatim}
 i2c1_pins: pinmux_i2c1_pins {
-	pinctrl-single,pins = <
-		AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_d1.i2c1_sda */
-		AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_cs0.i2c1_scl */
-	>;
+        pinctrl-single,pins = <
+                /* spi0_d1.i2c1_sda */
+                AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2)
+                /* spi0_cs0.i2c1_scl */
+                AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2)
+        >;
 };
 \end{verbatim}
 }




More information about the training-materials-updates mailing list