From: Ian Abbott Date: Thu, 1 Nov 2012 16:28:31 +0000 (+0000) Subject: staging: comedi: gsc_hpdi: make board name pointer const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=21309dabd3eec2827c7604a0cba19f3e795c33d7;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c b/drivers/staging/comedi/drivers/gsc_hpdi.c index 2246338611a9..adcc002bba6b 100644 --- a/drivers/staging/comedi/drivers/gsc_hpdi.c +++ b/drivers/staging/comedi/drivers/gsc_hpdi.c @@ -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 */ };