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: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6526cd1ad0
commit
21309dabd3
@@ -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 */
|
||||
};
|
||||
|
Reference in New Issue
Block a user