Constified ranges, board structures, and miscellaneous data.
[comedi.git] / comedi / drivers / s526.c
index a6a9c09f2d6e10924062abf4c70ccf6b00ae11fb..44f825457611bd874dc5a9f382fb5fe3a4c87363 100644 (file)
@@ -177,7 +177,7 @@ typedef struct s526_board_struct{
        int have_dio;
 }s526_board;
 
-static s526_board s526_boards[] = {
+static const s526_board s526_boards[] = {
        {
        name:           "s526",
        gpct_chans:     4,
@@ -196,7 +196,7 @@ static s526_board s526_boards[] = {
 /*
  * Useful for shorthand access to the particular board structure
  */
-#define thisboard ((s526_board *)dev->board_ptr)
+#define thisboard ((const s526_board *)dev->board_ptr)
 
 /* this structure is for data unique to this hardware driver.  If
    several hardware drivers keep similar information in this structure,