[FE training-materials-updates] kernel - minor input slide updates

Michael Opdenacker michael.opdenacker at free-electrons.com
Tue Oct 1 09:26:07 CEST 2013


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

On branch  : kernel-ng
Link       : http://git.free-electrons.com/training-materials/commit/?id=c4d4f9e30d483f91f4c4a32b39c12e2eca76847d

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

commit c4d4f9e30d483f91f4c4a32b39c12e2eca76847d
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Oct 1 09:25:20 2013 +0200

    kernel - minor input slide updates
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


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

c4d4f9e30d483f91f4c4a32b39c12e2eca76847d
 slides/kernel-input/kernel-input.tex |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/slides/kernel-input/kernel-input.tex b/slides/kernel-input/kernel-input.tex
index a034b43..51d575c 100644
--- a/slides/kernel-input/kernel-input.tex
+++ b/slides/kernel-input/kernel-input.tex
@@ -78,24 +78,24 @@ unsigned int code, int value);
     \end{minted}
   \item Before being used this struct must be initialized using:
     \code{struct input *input_allocate_device(void);}
-  \item After unregistered {\em input device}, the struct must be
+  \item After unregistering {\code input_dev}, the struct must be
     freed using: \code{void input_free_device(struct input_dev *dev);}
   \end{itemize}
 \end{frame}
 
 \begin{frame}[fragile]{Input subsystem API 2/3}
   \begin{itemize}
-  \item The event are sent to the event handler using
+  \item The events are sent to the event handler using
     \code{input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value);}
     \begin{itemize}
     \item The event types are documented in \code{Documentation/input/event-codes.txt}
     \item An event is composed by one or several input data changes
       (packet of input data changes) such as the button state, the
       relative or absolute position along an axis, etc..
-    \item A packet of input data change is separate by an other packet
-      of change using a wrapping function for \code{input_event()}:
+    \item Input data change packages are separated 
+      by using a wrapping function for \code{input_event()}:
       \code{ void input_sync(struct input_dev *dev)}:
-    \item The input subsystem provide other wrapper such as
+    \item The input subsystem provides other wrappers such as
       \code{input_report_key()}, \code{input_report_abs()}, ...
     \end{itemize}
   \end{itemize}
@@ -103,8 +103,8 @@ unsigned int code, int value);
 
 \begin{frame}[fragile]{Input subsystem API 3/3}
   \begin{itemize}
-  \item Depending the type of event that will be generated the input
-    bit fields must be sets up using \code{set_bit()}. For example for
+  \item Depending on the type of event that will be generated, the input
+    bit fields must be set up using \code{set_bit()}. For example for
     a button we only generate \code{EV_KEY} type events, and from
     those only \code{BTN_0} event code:
     \begin{minted}[fontsize=\footnotesize]{c}
@@ -114,7 +114,7 @@ unsigned int code, int value);
   \item Once the {\em input device} is allocated and filled, the
     function to register it
     is: \code{int input_register_device(struct input_dev *);}
-  \item When the driver will be unloaded, the {\em input device} will be
+  \item When the driver will be unloaded, the {\em input device} is
     unregistered using:
     \code{void input_unregister_device(struct input_dev *);}
   \end{itemize}
@@ -122,7 +122,7 @@ unsigned int code, int value);
 
 \begin{frame}[fragile]{Polled input subclass}
   \begin{itemize}
-  \item Input subsystem provides a subclass supporting simple input
+  \item The input subsystem provides a subclass supporting simple input
     devices that {\em do not raise interrupts} but have to be {\em
       periodically scanned or polled} to detect changes in their
     state.
@@ -158,9 +158,9 @@ struct input_polled_dev {
     the \code{input} structure must be initialized too.
   \item If none of the \code{poll_interval} fields are filled then the
     default poll interval is 500ms.
-  \item Finally the driver can be register using
+  \item Finally the driver can be registered using
     \code{input_register_polled_device(struct input_polled_dev *dev)}.
-  \item Before unloading the module, the driver have to be unregister
+  \item Before unloading the module, the driver has to be unregistered
     using:
     \code{input_unregister_polled_device(struct input_polled_dev *dev)}
   \end{itemize}



More information about the training-materials-updates mailing list