[FE training-materials-updates] kernel labs: clarify instructions in i2c/ device model

Michael Opdenacker michael.opdenacker at free-electrons.com
Wed Jul 22 10:31:03 CEST 2015


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=13e22bcdbf3291462808ec561042ab0ff609cef1

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

commit 13e22bcdbf3291462808ec561042ab0ff609cef1
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Wed Jul 22 10:18:11 2015 +0200

    kernel labs: clarify instructions in i2c/ device model
    
    - Describing what we are going to do next was misleading,
      people were trying to do it without further details
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


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

13e22bcdbf3291462808ec561042ab0ff609cef1
 labs/kernel-i2c-device-model/kernel-i2c-device-model.tex | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
index 7346ec6..dd9bd88 100644
--- a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
+++ b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
@@ -76,15 +76,11 @@ and \code{compatible} properties. All the rest can go away.
 Now, modify the corresponding \code{Makefile} to make sure the
 new DTS is compiled automatically.
 
-In this new file, we will have to do two things:
-
-\begin{enumerate}
-\item Enable and configure the second I2C bus (\code{i2c1}).
-\item Add a child node to this bus, corresponding to the Nunchuk device.
-\end{enumerate}
-
 \subsection{Enable the second I2C bus}
 
+We are first going to enable and configure the second I2C bus
+(\code{i2c1}).
+
 First, find the DT definitions for (\code{i2c1}).
 
 What is the base address of its registers? Also find the same address in
@@ -99,7 +95,7 @@ enough so far!
 
 \subsection{Declare the Nunchuk device}
 
-As a child node to this second bus, declare the \code{nunchuk}
+As a child node to the \code{i2c1} bus, now declare the \code{nunchuk}
 device, choosing \code{nintendo,nunchuk} for its \code{compatible}
 property. You will find the I2C slave address of the nunchuk on the
 nunckuk document that we have used earlier\footnote{This I2C slave



More information about the training-materials-updates mailing list