Commit 21309dab authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: gsc_hpdi: make board name pointer const

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: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6526cd1a
...@@ -186,8 +186,7 @@ static unsigned int fifo_size(uint32_t fifo_size_bits) ...@@ -186,8 +186,7 @@ static unsigned int fifo_size(uint32_t fifo_size_bits)
} }
struct hpdi_board { struct hpdi_board {
const char *name; /* board name */
char *name;
int device_id; /* pci device id */ int device_id; /* pci device id */
int subdevice_id; /* pci subdevice id */ int subdevice_id; /* pci subdevice id */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment