]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: gsc_hpdi: make board name pointer const
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 16:28:31 +0000 (16:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:33:22 +0000 (12:33 -0700)
Change the type of the `name` member of `struct hpdi_board` from `char
*` to `const char *` as it should not be modifiable.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/gsc_hpdi.c

index 2246338611a9597232b0b8fb28dbc285c6bba979..adcc002bba6b8f222838496bb7d34798c68dd349 100644 (file)
@@ -186,8 +186,7 @@ static unsigned int fifo_size(uint32_t fifo_size_bits)
 }
 
 struct hpdi_board {
-
-       char *name;
+       const char *name;       /*  board name */
        int device_id;          /*  pci device id */
        int subdevice_id;       /*  pci subdevice id */
 };