Skip to content

Commit

Permalink
labs/kernel-i2c-input-interface: fix order of explanations
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Opdenacker <[email protected]>
  • Loading branch information
Michael Opdenacker committed Jan 25, 2024
1 parent 3e99759 commit d8c9225
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions labs/kernel-i2c-input-interface/kernel-i2c-input-interface.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ \section{Register an input interface}
At this stage, first make sure that your module compiles well (add
missing headers if needed).

When the module is loaded, you should get:
\begin{verbatim}
input: Unspecified device as /devices/virtual/input/input0
\end{verbatim}

This \code{Unspecified device} string is actually expected
as we haven't filled the fields of the \code{input} structure yet.

\section{Handling probe failures}

In the code that you created, make sure that you handle failure
Expand Down Expand Up @@ -71,15 +79,9 @@ \section{Implement the remove() function}

\section{Add proper input device registration information}

We actually need to add more information to the \ksym{input} structure before
registering it. That's why we are getting the below warnings:

\begin{verbatim}
input: Unspecified device as /devices/virtual/input/input0
\end{verbatim}

Add the below lines of code (still before device registration, of
course):
As explained before, we actually need to add more information to the \ksym{input}
structure before registering it. So, add the below lines of code (still before
device registration, of course):

\sourcecode{labs/kernel-i2c-input-interface/input-device-attributes.c}

Expand Down

0 comments on commit d8c9225

Please sign in to comment.