]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: comedi: made comedi_lrange struct constant
authorArtur Lorincz <larturus@yahoo.com>
Sat, 11 Feb 2017 20:26:51 +0000 (21:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 18:17:06 +0000 (10:17 -0800)
Added the const type qualifier to the comedi_lrange structure.

Signed-off-by: Artur Lorincz <larturus@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_3501.c

index 57f0f46de0be4f71c904ff5f31918ef7e6a4e91d..1fdc0f8d7e1a7cc441e0a832600c0ee2b1bfff4c 100644 (file)
@@ -94,7 +94,7 @@ struct apci3501_private {
        unsigned char timer_mode;
 };
 
-static struct comedi_lrange apci3501_ao_range = {
+static const struct comedi_lrange apci3501_ao_range = {
        2, {
                BIP_RANGE(10),
                UNI_RANGE(10)