Module: xenomai-abe Branch: experimental Commit: 8c5ac1137f82a26886fedd9a0ccc54410f4c8e03 URL: http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=8c5ac1137f82a26886fedd9a0ccc54410f4c8e03
Author: Alexis Berlemont <alexis.berlem...@gmail.com> Date: Sun Jun 13 00:39:13 2010 +0200 analogy: fix the subdevice status management --- include/analogy/subdevice.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/analogy/subdevice.h b/include/analogy/subdevice.h index 4223748..5be036b 100644 --- a/include/analogy/subdevice.h +++ b/include/analogy/subdevice.h @@ -288,8 +288,8 @@ static inline int a4l_reserve_subd(a4l_subd_t *subd) { return test_and_set_bit(A4L_SUBD_BUSY_NR, &subd->status) ? -EBUSY : 0; } -#define a4l_release_subd(x) clear_bit(A4L_SUBD_BUSY_NR, &((x)->flags)) -#define a4l_subd_is_busy(x) (test_bit(A4L_SUBD_BUSY_NR, &((x)->flags))) +#define a4l_release_subd(x) clear_bit(A4L_SUBD_BUSY_NR, &((x)->status)) +#define a4l_subd_is_busy(x) (test_bit(A4L_SUBD_BUSY_NR, &((x)->status))) #define a4l_subd_is_input(x) ((A4L_SUBD_MASK_READ & (x)->flags) != 0) /* The following macro considers that a DIO subdevice is firstly an _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git