Added check for length of INSN_CONFIG_SET_RTSI_CLOCK_MODE,
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 12 Jul 2006 02:17:50 +0000 (02:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 12 Jul 2006 02:17:50 +0000 (02:17 +0000)
(David MacMahon <davidm@astro.berkeley.edu>)

comedi/comedi_fops.c

index 79a09883cc07ca0ca1ab51d1bac69de1a8d98c50..69c556d9dbcdd73e3caaa3174b876daf07895b55 100644 (file)
@@ -635,11 +635,12 @@ static int check_insn_config_length(comedi_insn *insn, lsampl_t *data)
        case INSN_CONFIG_BLOCK_SIZE:
        case INSN_CONFIG_SERIAL_CLOCK:
        case INSN_CONFIG_BIDIRECTIONAL_DATA:
+       case INSN_CONFIG_SET_RTSI_CLOCK_MODE:
                if( insn->n == 2 ) return 0;
                break;
-       //by default we allow the insn since we don't have checks for all possible cases yet 
+       //by default we allow the insn since we don't have checks for all possible cases yet
        default:
-               rt_printk("No check for data length of config insn id %i implemented.  Assuming n=%i is correct.\n",
+               rt_printk("comedi: no check for data length of config insn id %i implemented.  Assuming n=%i is correct.\n",
                                data[0], insn->n);
                return 0;
                break;