[bootlin/training-materials updates] master: slides/sysdev-hw-devices: update CS42L51 example (78901592)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Sep 28 13:50:37 CEST 2022


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/78901592e799c75b83dbb884ad744dad668a85c1

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

commit 78901592e799c75b83dbb884ad744dad668a85c1
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Sep 28 13:50:37 2022 +0200

    slides/sysdev-hw-devices: update CS42L51 example
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

78901592e799c75b83dbb884ad744dad668a85c1
 slides/sysdev-hw-devices/sysdev-hw-devices.tex | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/slides/sysdev-hw-devices/sysdev-hw-devices.tex b/slides/sysdev-hw-devices/sysdev-hw-devices.tex
index 68e564b6..1731f139 100644
--- a/slides/sysdev-hw-devices/sysdev-hw-devices.tex
+++ b/slides/sysdev-hw-devices/sysdev-hw-devices.tex
@@ -1512,7 +1512,7 @@ static struct platform_driver stm32_serial_driver = {
 \end{frame}
 
 \begin{frame}[fragile]{Matching with drivers in Linux: I2C driver}
-  \begin{block}{\kfile{sound/soc/codecs/cs42l51-i2c.c}}
+  \begin{block}{\kfile{sound/soc/codecs/cs42l51.c}}
     {\tiny
 \begin{minted}{c}
 const struct of_device_id cs42l51_of_match[] = {
@@ -1520,7 +1520,12 @@ const struct of_device_id cs42l51_of_match[] = {
         { }
 };
 MODULE_DEVICE_TABLE(of, cs42l51_of_match);
-
+\end{minted}
+    }
+  \end{block}
+  \begin{block}{\kfile{sound/soc/codecs/cs42l51-i2c.c}}
+    {\tiny
+\begin{minted}{c}
 static struct i2c_driver cs42l51_i2c_driver = {
         .driver = {
                 .name = "cs42l51",




More information about the training-materials-updates mailing list