Module: xenomai-abe
Branch: experimental
Commit: e31a28c27483615fb3b90846aabea6d358228bb9
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=e31a28c27483615fb3b90846aabea6d358228bb9

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sun May 16 23:55:48 2010 +0200

analogy: adapt a4l_set_dev() after a4l_context's overhaul (broken)

---

 ksrc/drivers/analogy/device.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ksrc/drivers/analogy/device.c b/ksrc/drivers/analogy/device.c
index b3ef9bf..4a3c879 100644
--- a/ksrc/drivers/analogy/device.c
+++ b/ksrc/drivers/analogy/device.c
@@ -59,9 +59,15 @@ int a4l_check_cleanup_devs(void)
        return ret;
 }
 
-void a4l_set_dev(a4l_cxt_t * cxt)
+void a4l_set_dev(struct rtdm_dev_context *context)
 {
-       cxt->dev = &(a4l_devs[a4l_get_minor(cxt)]);
+       /* Get the context's private structure */
+       a4l_cxt_t *cxt = (a4l_cxt_t *)context->dev_private;
+       /* Retrive the minor index */
+       static int minor = context->device->device_id;
+       
+       /* Fill the dev fields accordingly */
+       cxt->dev = &(a4l_devs[minor]);
 }
 
 /* --- Device tab proc section --- */


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

Reply via email to