diff options
| author | Manuel Traut <manut@linutronix.de> | 2012-04-13 01:02:11 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2012-04-13 01:02:11 +0200 |
| commit | 8f0af2af68578d17e43096142e3fa0f273c5d43e (patch) | |
| tree | c5b57fa2eb3202902c963992cf8422929058a82b /kernel-devel/linux-device/pres_linux-device_en.tex | |
| parent | 1e1f39601dba5d64f3b6085ee0d43ad16f36b762 (diff) | |
| parent | 2b7c2158e1ac39c94fb9632a1c982bc58ff08cdf (diff) | |
Merge branch 'master' of ssh://mecka.net/home/git/vorlesung
Diffstat (limited to 'kernel-devel/linux-device/pres_linux-device_en.tex')
| -rw-r--r-- | kernel-devel/linux-device/pres_linux-device_en.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel-devel/linux-device/pres_linux-device_en.tex b/kernel-devel/linux-device/pres_linux-device_en.tex index 7b54362..d34ba56 100644 --- a/kernel-devel/linux-device/pres_linux-device_en.tex +++ b/kernel-devel/linux-device/pres_linux-device_en.tex @@ -174,6 +174,7 @@ these fields should be initialized before calling the register function: \item parent \item name \item bus +\item class \end{itemize} \end{frame} @@ -203,8 +204,8 @@ Attributes can be exported to sysfs by the device driver. \begin{lstlisting}[frame=trBL] my.c: ... -static DEVICE_ATTR(ro, 0444, my_show_ro, NULL); -static DEVICE_ATTR(rw, 0644, my_show_rw, my_store_rw); +static DEVICE_ATTR(ro_example, 0444, my_show_ro, NULL); +static DEVICE_ATTR(rw_example, 0644, my_show_rw, my_store_rw); static struct attribute *my_dev_attrs[] = { &dev_attr_ro.attr, |
