Got rid of unnecessary casts when initializing comedi_driver.board_name
[comedi.git] / comedi / drivers / pcl818.c
index 0ae5596f27a0b0ff72d056a7a325b298d65b2c54..5f8901611fc31b69fa1abe2e728f36243e1f10e7 100644 (file)
@@ -249,7 +249,7 @@ static int RTC_timer_lock = 0;              /* RTC int lock */
 #endif
 
 typedef struct {
-       char            *name;          // driver name
+       const char              *name;          // driver name
        int             n_ranges;       // len of range list
        int             n_aichan_se;    // num of A/D chans in single ended  mode
        int             n_aichan_diff;  // num of A/D chans in diferencial mode
@@ -294,7 +294,7 @@ static comedi_driver driver_pcl818={
        module:         THIS_MODULE,
        attach:         pcl818_attach,
        detach:         pcl818_detach,
-       board_name:     (const char**)boardtypes,
+       board_name:     &boardtypes[0].name,
        num_names:      n_boardtypes,
        offset:         sizeof(boardtype),
 };