diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-12-12 05:44:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:44 -0500 |
commit | b8ac9fc0e8cda9f9776019c5b0464b0c6d2d4c90 (patch) | |
tree | ec16e6a3844396dd67af3f87c915cb272570cc98 /Documentation/DocBook | |
parent | a2ab3d30005cdce45c2c7e31ad6743ad7975609a (diff) |
uio: make uio_info's name and version const
These are only ever assigned constant strings and never modified.
This was noticed because Wolfram Sang needed to cast the result of
of_get_property() in order to assign it to the name field of a struct
uio_info.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/uio-howto.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/DocBook/uio-howto.tmpl b/Documentation/DocBook/uio-howto.tmpl index 6116b93608df..b787e4721c90 100644 --- a/Documentation/DocBook/uio-howto.tmpl +++ b/Documentation/DocBook/uio-howto.tmpl | |||
@@ -393,12 +393,12 @@ offset = N * getpagesize(); | |||
393 | 393 | ||
394 | <itemizedlist> | 394 | <itemizedlist> |
395 | <listitem><para> | 395 | <listitem><para> |
396 | <varname>char *name</varname>: Required. The name of your driver as | 396 | <varname>const char *name</varname>: Required. The name of your driver as |
397 | it will appear in sysfs. I recommend using the name of your module for this. | 397 | it will appear in sysfs. I recommend using the name of your module for this. |
398 | </para></listitem> | 398 | </para></listitem> |
399 | 399 | ||
400 | <listitem><para> | 400 | <listitem><para> |
401 | <varname>char *version</varname>: Required. This string appears in | 401 | <varname>const char *version</varname>: Required. This string appears in |
402 | <filename>/sys/class/uio/uioX/version</filename>. | 402 | <filename>/sys/class/uio/uioX/version</filename>. |
403 | </para></listitem> | 403 | </para></listitem> |
404 | 404 | ||