From da68eb31881d9fdd9b26938ddf6af35893c6494d Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@linutronix.de>
Date: Fri, 13 Apr 2012 01:02:06 +0200
Subject: fix build of linux-device

Signed-off-by: Manuel Traut <manut@linutronix.de>
---
 kernel-devel/linux-device/pres_linux-device_en.tex | 33 +++++++++++-----------
 1 file changed, 16 insertions(+), 17 deletions(-)

(limited to 'kernel-devel/linux-device/pres_linux-device_en.tex')

diff --git a/kernel-devel/linux-device/pres_linux-device_en.tex b/kernel-devel/linux-device/pres_linux-device_en.tex
index c234b36..d34ba56 100644
--- a/kernel-devel/linux-device/pres_linux-device_en.tex
+++ b/kernel-devel/linux-device/pres_linux-device_en.tex
@@ -1,10 +1,12 @@
 \input{configpres}
 
 \title{struct device}
-%\maketitle
+\maketitle
+
+\subsection{basics}
 
 \begin{frame}
-\maketitle{aim}
+\frametitle{aim}
 \begin{itemize}
 \item lowest level representation of every device in a Linux system
 \item hosts information that the device model core needs to model the system
@@ -15,9 +17,7 @@
 \end{itemize}
 \end{frame}
 
-\subtitle{components of the struct}
-
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{name and type}
 for example a mouse device
 \begin{tiny}
@@ -33,7 +33,7 @@ struct device {
 \end{tiny}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{connection of multiple devices}
 for example usb-hostcontroller1/usb-device3/usb-endpoint4/mouse
 \begin{tiny}
@@ -54,7 +54,7 @@ struct device {
 \end{itemize}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{private data}
 \begin{tiny}
 \begin{lstlisting}[frame=trBL]
@@ -80,7 +80,7 @@ struct device {
 \end{tiny}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{bus}
 \begin{tiny}
 \begin{lstlisting}[frame=trBL]
@@ -101,7 +101,7 @@ struct device {
 \end{itemize}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{driver}
 \begin{tiny}
 \begin{lstlisting}[frame=trBL]
@@ -123,7 +123,7 @@ struct device {
 \end{itemize}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{platform data}
 \begin{tiny}
 \begin{lstlisting}[frame=trBL]
@@ -141,11 +141,11 @@ struct device {
 \item hosts for example how a specific device is connected (mem\_base, irq)
 \item can host informations about chip variants
 \item shrinks 'board support packages'
-\item reduces board specific #ifdefs in driver code
+\item reduces board specific \#ifdefs in driver code
 \end{itemize}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{misc}
 \begin{itemize}
 \item structs for device power management
@@ -158,9 +158,9 @@ struct device {
 \end{itemize}
 \end{frame}
 
-\subtitle{how is it used}
+\subsection{how is it used}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{initialization}
 The bus driver that discovers the device uses this to register the device with
 the core:
@@ -178,7 +178,7 @@ these fields should be initialized before calling the register function:
 \end{itemize}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{use by a driver}
 A device is removed from the core when its reference count goes to 0.
 The reference count can be adjusted using:
@@ -197,7 +197,7 @@ void unlock_device(struct device * dev);
 \end{tiny}
 \end{frame}
 
-\begin{frame}
+\begin{frame}[fragile]
 \frametitle{device attributes}
 Attributes can be exported to sysfs by the device driver.
 \begin{tiny}
@@ -229,7 +229,6 @@ static int __init my_driver_init(struct device *my_dev)
 	device_register(my_dev);
 	...
 }
-
 \end{lstlisting}
 \end{tiny}
 \end{frame}
-- 
cgit v1.2.3

