[bootlin/training-materials updates] master: i2c-input lab: fix paragraph (80e5d9c8)
Michael Opdenacker
michael.opdenacker at bootlin.com
Mon Feb 8 10:35:55 CET 2021
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/80e5d9c8ab99cd34fea4606a0df4fcf5b970a6e7
>---------------------------------------------------------------
commit 80e5d9c8ab99cd34fea4606a0df4fcf5b970a6e7
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Mon Feb 8 10:35:55 2021 +0100
i2c-input lab: fix paragraph
- The description was out of date
after the update for polling input API
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
80e5d9c8ab99cd34fea4606a0df4fcf5b970a6e7
.../kernel-i2c-input-interface.tex | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/labs/kernel-i2c-input-interface/kernel-i2c-input-interface.tex b/labs/kernel-i2c-input-interface/kernel-i2c-input-interface.tex
index d4e5938c..d9fc07a8 100644
--- a/labs/kernel-i2c-input-interface/kernel-i2c-input-interface.tex
+++ b/labs/kernel-i2c-input-interface/kernel-i2c-input-interface.tex
@@ -13,15 +13,10 @@ After this lab, you will be able to:
(user space perspective).
\end{itemize}
-\section{Add polled input device support to the kernel}
+\section{Add input event interface support to the kernel}
-The nunchuk doesn't have interrupts to notify the I2C master that
-its state has changed. Therefore, the only way to access device data
-and detect changes is to regularly poll its registers, using the input
-polling API described in the lectures.
-
-Rebuild your kernel with static event interface
-(\kconfig{CONFIG_INPUT_EVDEV}) support. With the default
+For this lab, you need to rebuild your kernel with static input
+event interface (\kconfig{CONFIG_INPUT_EVDEV}) support. With the default
configuration, this feature is available as a module, which is less
convenient.
@@ -92,9 +87,13 @@ Recompile and reload your driver. You should now see in the kernel log
that the \code{Unspecified device} type is replaced by
\code{Wii Nunchuk}.
-\section{Implement the polling routine}
+\section{Implement a polling routine}
+
+The nunchuk doesn't have interrupts to notify the I2C master that
+its state has changed. Therefore, the only way to access device data
+and detect changes is to regularly poll its registers.
-It's time to implement the routine which will poll the nunchuk registers
+So, it's time to implement a routine which will poll the nunchuk registers
at a regular interval.
Create a \code{nunchuk_poll()} function with the right prototype (find
More information about the training-materials-updates
mailing list