Got rid of unnecessary casts when initializing comedi_driver.board_name
[comedi.git] / comedi / drivers / aio_aio12_8.c
index a0bffda128f0e55068d96890b691a355d9f716c9..34573c8fe9169fbcc64d850f8e6914fb60d3373e 100644 (file)
@@ -73,7 +73,7 @@ Notes:
 
 typedef struct
 {
-       char *name;
+       const char *name;
 } board_type;
 
 static board_type board_types[] =
@@ -230,7 +230,7 @@ static comedi_driver driver_aio_aio12_8 =
        module:         THIS_MODULE,
        attach:         aio_aio12_8_attach,
        detach:         aio_aio12_8_detach,
-       board_name:     (const char**)board_types,
+       board_name:     &board_types[0].name,
        num_names:      1,
        offset:         sizeof (board_type),
 };