Skip to content

Commit

Permalink
staging: comedi: gsc_hpdi: make board name pointer const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Nov 1, 2012
1 parent 6526cd1 commit 21309da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/comedi/drivers/gsc_hpdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand Down

0 comments on commit 21309da

Please sign in to comment.