From e749d1e40c7f6d04875ddbad0c17b6b8851c7c84 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 8 Jun 2001 21:43:18 +0000 Subject: [PATCH] fixes for kcomedilib with trigger support off. comedi_dio_config() was using trigger code instead of insn, I assumed there was no good reason for this such as the insn code not working. --- comedi/kcomedilib/dio.c | 2 +- comedi/kcomedilib/ksyms.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/comedi/kcomedilib/dio.c b/comedi/kcomedilib/dio.c index 01a54560..7ed37bea 100644 --- a/comedi/kcomedilib/dio.c +++ b/comedi/kcomedilib/dio.c @@ -47,7 +47,7 @@ extern volatile int rtcomedi_lock_semaphore; int comedi_dio_config(unsigned int dev,unsigned int subdev,unsigned int chan, unsigned int io) { -#if 0 +#ifdef USE_INSN comedi_insn insn; memset(&insn,0,sizeof(insn)); diff --git a/comedi/kcomedilib/ksyms.c b/comedi/kcomedilib/ksyms.c index 7abd4dff..5cf236c8 100644 --- a/comedi/kcomedilib/ksyms.c +++ b/comedi/kcomedilib/ksyms.c @@ -43,7 +43,9 @@ /* functions specific to kcomedilib */ +#ifdef CONFIG_COMEDI_TRIG EXPORT_SYMBOL(__comedi_trigger); +#endif EXPORT_SYMBOL(comedi_register_callback); EXPORT_SYMBOL(comedi_get_subdevice_flags); EXPORT_SYMBOL(comedi_get_len_chanlist); @@ -79,7 +81,9 @@ EXPORT_SYMBOL(comedi_get_n_ranges); //EXPORT_SYMBOL(comedi_range_is_chan_specific); //EXPORT_SYMBOL(comedi_maxdata_is_chan_specific); EXPORT_SYMBOL(comedi_cancel); +#ifdef CONFIG_COMEDI_TRIG EXPORT_SYMBOL(comedi_trigger); +#endif EXPORT_SYMBOL(comedi_command); EXPORT_SYMBOL(comedi_command_test); //EXPORT_SYMBOL(comedi_do_insnlist); -- 2.26.2