Constified ranges, board structures, and miscellaneous data.
[comedi.git] / comedi / drivers / poc.c
index 712e97121b56e4dfa69461bd309d9442f459aa52..bd7ad8b53ebac452e5a427f7bca9996438c0fc58 100644 (file)
@@ -61,9 +61,9 @@ struct boarddef_struct{
        int (*winsn)(comedi_device *,comedi_subdevice *,comedi_insn *,lsampl_t *);
        int (*rinsn)(comedi_device *,comedi_subdevice *,comedi_insn *,lsampl_t *);
        int (*insnbits)(comedi_device *,comedi_subdevice *,comedi_insn *,lsampl_t *);
-       comedi_lrange* range;
+       const comedi_lrange *range;
 };
-static struct boarddef_struct boards[]={
+static const struct boarddef_struct boards[]={
        {
        name:           "dac02",
        iosize:         8,
@@ -95,7 +95,7 @@ static struct boarddef_struct boards[]={
        },
 };
 #define n_boards (sizeof(boards)/sizeof(boards[0]))
-#define this_board ((struct boarddef_struct *)dev->board_ptr)
+#define this_board ((const struct boarddef_struct *)dev->board_ptr)
 
 static comedi_driver driver_poc=
 {