[bootlin/training-materials updates] master: kernel: i2c-comm: Better presentation in the book (4adf140f)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 29 10:46:40 CEST 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/4adf140f54e0e8a029d224774f0a8ba3d7a42bee
>---------------------------------------------------------------
commit 4adf140f54e0e8a029d224774f0a8ba3d7a42bee
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>
>---------------------------------------------------------------
4adf140f54e0e8a029d224774f0a8ba3d7a42bee
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