Module: xenomai-2.5
Branch: master
Commit: 9b8150bfe75b2d2b2c96779340c8f00da1b394fb
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=9b8150bfe75b2d2b2c96779340c8f00da1b394fb

Author: Simon Boulay <simon.bou...@gmail.com>
Date:   Thu Jan  7 23:22:55 2010 +0100

analogy: [s526] Remove useless HAVE_DIO option

Signed-off-by: Simon Boulay <simon.bou...@gmail.com>

---

 ksrc/drivers/analogy/sensoray/s526.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/ksrc/drivers/analogy/sensoray/s526.c 
b/ksrc/drivers/analogy/sensoray/s526.c
index 9bb2ed8..8286df8 100644
--- a/ksrc/drivers/analogy/sensoray/s526.c
+++ b/ksrc/drivers/analogy/sensoray/s526.c
@@ -48,7 +48,6 @@
 #define S526_AI_TIMEOUT 100
 #define S526_AO_CHANS  4
 #define S526_AO_BITS   16
-#define S526_HAVE_DIO  1
 #define S526_DIO_CHANS 8
 #define S526_DIO_BITS  1
 
@@ -693,15 +692,11 @@ static void setup_subd_ao(a4l_subd_t *subd)
 /* Digital i/o subdevice */
 static void setup_subd_dio(a4l_subd_t *subd)
 {
-       if (S526_HAVE_DIO > 0) {
-               subd->flags = A4L_SUBD_DIO;
-               subd->chan_desc = &s526_chan_desc_dio;
-               subd->rng_desc = &range_digital;
-               subd->insn_bits = s526_dio_insn_bits;
-               subd->insn_config = s526_dio_insn_config;
-       } else {
-               subd->flags = A4L_SUBD_UNUSED;
-       }
+       subd->flags = A4L_SUBD_DIO;
+       subd->chan_desc = &s526_chan_desc_dio;
+       subd->rng_desc = &range_digital;
+       subd->insn_bits = s526_dio_insn_bits;
+       subd->insn_config = s526_dio_insn_config;
 }
 
 struct setup_subd {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to