[Xenomai-git] Alexis Berlemont : analogy: minor changes

2011-09-06 Thread GIT version control
Module: xenomai-head
Branch: master
Commit: 076b749aa22632e528dc9c46354451f9a8ac5e75
URL:
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=076b749aa22632e528dc9c46354451f9a8ac5e75

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Mon Oct 18 23:48:08 2010 +0200

analogy: minor changes

---

 src/utils/analogy/wf_facilities.c |4 +---
 src/utils/analogy/wf_facilities.h |2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/wf_facilities.c 
b/src/utils/analogy/wf_facilities.c
index 2f443c5..ce250e7 100644
--- a/src/utils/analogy/wf_facilities.c
+++ b/src/utils/analogy/wf_facilities.c
@@ -4,9 +4,7 @@
 #include errno.h
 #include math.h
 
-#include analogy/analogy.h
-
-#include signal_generation.h
+#include wf_facilities.h
 
 #ifndef PI
 #define PI 3.14159265358979323846
diff --git a/src/utils/analogy/wf_facilities.h 
b/src/utils/analogy/wf_facilities.h
index 6f6d2cf..6c99d51 100644
--- a/src/utils/analogy/wf_facilities.h
+++ b/src/utils/analogy/wf_facilities.h
@@ -3,8 +3,6 @@
 
 #include stdio.h
 
-#include analogy/analogy.h
-
 #define MAX_SAMPLE_COUNT 8096
 #define MIN_SAMPLE_COUNT 2
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes

2011-09-01 Thread GIT version control
Module: xenomai-abe
Branch: analogy
Commit: b32bdf8588136a24023295cd850eda4e3058e31a
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=b32bdf8588136a24023295cd850eda4e3058e31a

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Mon Oct 18 23:48:08 2010 +0200

analogy: minor changes

---

 src/utils/analogy/wf_facilities.c |4 +---
 src/utils/analogy/wf_facilities.h |2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/wf_facilities.c 
b/src/utils/analogy/wf_facilities.c
index 2f443c5..ce250e7 100644
--- a/src/utils/analogy/wf_facilities.c
+++ b/src/utils/analogy/wf_facilities.c
@@ -4,9 +4,7 @@
 #include errno.h
 #include math.h
 
-#include analogy/analogy.h
-
-#include signal_generation.h
+#include wf_facilities.h
 
 #ifndef PI
 #define PI 3.14159265358979323846
diff --git a/src/utils/analogy/wf_facilities.h 
b/src/utils/analogy/wf_facilities.h
index 6f6d2cf..6c99d51 100644
--- a/src/utils/analogy/wf_facilities.h
+++ b/src/utils/analogy/wf_facilities.h
@@ -3,8 +3,6 @@
 
 #include stdio.h
 
-#include analogy/analogy.h
-
 #define MAX_SAMPLE_COUNT 8096
 #define MIN_SAMPLE_COUNT 2
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes

2011-08-23 Thread GIT version control
Module: xenomai-abe
Branch: experimental
Commit: 064055d6cc05b8aa2fe392cfdd82feaa8a87ce44
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=064055d6cc05b8aa2fe392cfdd82feaa8a87ce44

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Mon Oct 18 23:48:08 2010 +0200

analogy: minor changes

---

 src/utils/analogy/wf_facilities.c |4 +---
 src/utils/analogy/wf_facilities.h |2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/wf_facilities.c 
b/src/utils/analogy/wf_facilities.c
index 2f443c5..ce250e7 100644
--- a/src/utils/analogy/wf_facilities.c
+++ b/src/utils/analogy/wf_facilities.c
@@ -4,9 +4,7 @@
 #include errno.h
 #include math.h
 
-#include analogy/analogy.h
-
-#include signal_generation.h
+#include wf_facilities.h
 
 #ifndef PI
 #define PI 3.14159265358979323846
diff --git a/src/utils/analogy/wf_facilities.h 
b/src/utils/analogy/wf_facilities.h
index 6f6d2cf..6c99d51 100644
--- a/src/utils/analogy/wf_facilities.h
+++ b/src/utils/analogy/wf_facilities.h
@@ -3,8 +3,6 @@
 
 #include stdio.h
 
-#include analogy/analogy.h
-
 #define MAX_SAMPLE_COUNT 8096
 #define MIN_SAMPLE_COUNT 2
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes

2011-05-12 Thread GIT version control
Module: xenomai-abe
Branch: experimental
Commit: 08d7468bd8e1cdd7377b9ce19689c00ab9132421
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=08d7468bd8e1cdd7377b9ce19689c00ab9132421

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Mon Oct 18 23:48:08 2010 +0200

analogy: minor changes

---

 src/utils/analogy/wf_facilities.c |4 +---
 src/utils/analogy/wf_facilities.h |2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/wf_facilities.c 
b/src/utils/analogy/wf_facilities.c
index 2f443c5..ce250e7 100644
--- a/src/utils/analogy/wf_facilities.c
+++ b/src/utils/analogy/wf_facilities.c
@@ -4,9 +4,7 @@
 #include errno.h
 #include math.h
 
-#include analogy/analogy.h
-
-#include signal_generation.h
+#include wf_facilities.h
 
 #ifndef PI
 #define PI 3.14159265358979323846
diff --git a/src/utils/analogy/wf_facilities.h 
b/src/utils/analogy/wf_facilities.h
index 6f6d2cf..6c99d51 100644
--- a/src/utils/analogy/wf_facilities.h
+++ b/src/utils/analogy/wf_facilities.h
@@ -3,8 +3,6 @@
 
 #include stdio.h
 
-#include analogy/analogy.h
-
 #define MAX_SAMPLE_COUNT 8096
 #define MIN_SAMPLE_COUNT 2
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes

2011-01-12 Thread GIT version control
Module: xenomai-abe
Branch: experimental
Commit: 0835111fd11891728f5206152eb0d1bb5dcb2b0b
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=0835111fd11891728f5206152eb0d1bb5dcb2b0b

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Mon Oct 18 23:48:08 2010 +0200

analogy: minor changes

---

 src/utils/analogy/wf_facilities.c |4 +---
 src/utils/analogy/wf_facilities.h |2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/utils/analogy/wf_facilities.c 
b/src/utils/analogy/wf_facilities.c
index 2f443c5..ce250e7 100644
--- a/src/utils/analogy/wf_facilities.c
+++ b/src/utils/analogy/wf_facilities.c
@@ -4,9 +4,7 @@
 #include errno.h
 #include math.h
 
-#include analogy/analogy.h
-
-#include signal_generation.h
+#include wf_facilities.h
 
 #ifndef PI
 #define PI 3.14159265358979323846
diff --git a/src/utils/analogy/wf_facilities.h 
b/src/utils/analogy/wf_facilities.h
index 6f6d2cf..6c99d51 100644
--- a/src/utils/analogy/wf_facilities.h
+++ b/src/utils/analogy/wf_facilities.h
@@ -3,8 +3,6 @@
 
 #include stdio.h
 
-#include analogy/analogy.h
-
 #define MAX_SAMPLE_COUNT 8096
 #define MIN_SAMPLE_COUNT 2
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in cmd_bits

2010-09-20 Thread GIT version control
Module: xenomai-2.5
Branch: master
Commit: 51d69ef9393dbc183e21ab8adc58d55d6f11ea7f
URL:
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=51d69ef9393dbc183e21ab8adc58d55d6f11ea7f

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Aug 24 00:52:36 2010 +0200

analogy: minor changes in cmd_bits

---

 src/utils/analogy/cmd_bits.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/cmd_bits.c b/src/utils/analogy/cmd_bits.c
index aa0e082..966e278 100644
--- a/src/utils/analogy/cmd_bits.c
+++ b/src/utils/analogy/cmd_bits.c
@@ -45,7 +45,7 @@ a4l_cmd_t cmd = {
.start_src = TRIG_INT,
.start_arg = 0,
.scan_begin_src = TRIG_EXT,
-   .scan_begin_arg = 0, /* in ns */
+   .scan_begin_arg = 28, /* in ns */
.convert_src = TRIG_NOW,
.convert_arg = 0, /* in ns */
.scan_end_src = TRIG_COUNT,
@@ -270,6 +270,10 @@ out_cmd_bits:
if (dsc.sbdata != NULL)
free(dsc.sbdata);
 
+   /* The fd closure will automatically trigger a cancel; so,
+  wait a little bit for the end of the transfer */
+   sleep(1);
+
/* Release the file descriptor */
a4l_close(dsc);
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in cmd_bits

2010-09-19 Thread GIT version control
Module: xenomai-abe
Branch: analogy
Commit: 51d69ef9393dbc183e21ab8adc58d55d6f11ea7f
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=51d69ef9393dbc183e21ab8adc58d55d6f11ea7f

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Aug 24 00:52:36 2010 +0200

analogy: minor changes in cmd_bits

---

 src/utils/analogy/cmd_bits.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/cmd_bits.c b/src/utils/analogy/cmd_bits.c
index aa0e082..966e278 100644
--- a/src/utils/analogy/cmd_bits.c
+++ b/src/utils/analogy/cmd_bits.c
@@ -45,7 +45,7 @@ a4l_cmd_t cmd = {
.start_src = TRIG_INT,
.start_arg = 0,
.scan_begin_src = TRIG_EXT,
-   .scan_begin_arg = 0, /* in ns */
+   .scan_begin_arg = 28, /* in ns */
.convert_src = TRIG_NOW,
.convert_arg = 0, /* in ns */
.scan_end_src = TRIG_COUNT,
@@ -270,6 +270,10 @@ out_cmd_bits:
if (dsc.sbdata != NULL)
free(dsc.sbdata);
 
+   /* The fd closure will automatically trigger a cancel; so,
+  wait a little bit for the end of the transfer */
+   sleep(1);
+
/* Release the file descriptor */
a4l_close(dsc);
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in cmd_bits

2010-08-23 Thread GIT version control
Module: xenomai-abe
Branch: analogy
Commit: 66a1c85067d5c17ed3425abcc8f5ba4ec0ece038
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=66a1c85067d5c17ed3425abcc8f5ba4ec0ece038

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Aug 24 00:52:36 2010 +0200

analogy: minor changes in cmd_bits

---

 src/utils/analogy/cmd_bits.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/cmd_bits.c b/src/utils/analogy/cmd_bits.c
index aa0e082..966e278 100644
--- a/src/utils/analogy/cmd_bits.c
+++ b/src/utils/analogy/cmd_bits.c
@@ -45,7 +45,7 @@ a4l_cmd_t cmd = {
.start_src = TRIG_INT,
.start_arg = 0,
.scan_begin_src = TRIG_EXT,
-   .scan_begin_arg = 0, /* in ns */
+   .scan_begin_arg = 28, /* in ns */
.convert_src = TRIG_NOW,
.convert_arg = 0, /* in ns */
.scan_end_src = TRIG_COUNT,
@@ -270,6 +270,10 @@ out_cmd_bits:
if (dsc.sbdata != NULL)
free(dsc.sbdata);
 
+   /* The fd closure will automatically trigger a cancel; so,
+  wait a little bit for the end of the transfer */
+   sleep(1);
+
/* Release the file descriptor */
a4l_close(dsc);
 


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in comments

2010-03-28 Thread GIT version control
Module: xenomai-2.5
Branch: master
Commit: c9fb5b9dac6883a90dfca42e4a4c71082a979f0b
URL:
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=c9fb5b9dac6883a90dfca42e4a4c71082a979f0b

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Feb  9 00:41:23 2010 +0100

analogy: minor changes in comments

---

 ksrc/drivers/analogy/device.c |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ksrc/drivers/analogy/device.c b/ksrc/drivers/analogy/device.c
index cd586f7..082053f 100644
--- a/ksrc/drivers/analogy/device.c
+++ b/ksrc/drivers/analogy/device.c
@@ -95,7 +95,7 @@ int a4l_rdproc_devs(char *page,
p += sprintf(p, |  %02d | %s | %s\n, i, status, name);
}
 
-   /* Handles any proc-file reading way */
+   /* Handle any proc-file reading way */
len = p - page - off;
/* If the requested size is greater than we provide,
   the read operation is over */
@@ -122,18 +122,18 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
struct proc_dir_entry *entry;
char *entry_name, *p;
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_attach: failed to allocate buffer\n);
return -ENOMEM;
}
 
-   /* Creates the proc file name */
+   /* Create the proc file name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Creates the proc entry */
+   /* Create the proc entry */
entry = create_proc_entry(entry_name, 0444, a4l_proc_root);
if (entry == NULL) {
__a4l_err(a4l_proc_attach: 
@@ -150,7 +150,7 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
wrap_proc_dir_entry_owner(entry);
 
   out_setup_proc_transfer:
-   /* Frees the file name buffer */
+   /* Free the file name buffer */
rtdm_free(entry_name);
 
return ret;
@@ -161,7 +161,7 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
char *entry_name, *p;
a4l_dev_t *dev = a4l_get_dev(cxt);
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_detach: 
@@ -169,14 +169,14 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
return;
}
 
-   /* Builds the name */
+   /* Build the name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Removes the proc file */
+   /* Remove the proc file */
remove_proc_entry(entry_name, a4l_proc_root);
 
-   /* Frees the temporary buffer */
+   /* Free the temporary buffer */
rtdm_free(entry_name);
 }
 
@@ -460,10 +460,10 @@ int a4l_ioctl_devcfg(a4l_cxt_t * cxt, void *arg)
}
/* Pre-initialization of the transfer structure */
a4l_presetup_transfer(cxt);
-   /* Links the device with the driver */
+   /* Link the device with the driver */
if ((ret = a4l_device_attach(cxt, arg)) != 0)
return ret;
-   /* Creates the transfer structure and
+   /* Create the transfer structure and
   the related proc file */
if ((ret = a4l_setup_transfer(cxt)) != 0 ||
(ret = a4l_proc_attach(cxt)) != 0)


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in comments

2010-03-18 Thread GIT version control
Module: xenomai-abe
Branch: analogy
Commit: c9fb5b9dac6883a90dfca42e4a4c71082a979f0b
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=c9fb5b9dac6883a90dfca42e4a4c71082a979f0b

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Feb  9 00:41:23 2010 +0100

analogy: minor changes in comments

---

 ksrc/drivers/analogy/device.c |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ksrc/drivers/analogy/device.c b/ksrc/drivers/analogy/device.c
index cd586f7..082053f 100644
--- a/ksrc/drivers/analogy/device.c
+++ b/ksrc/drivers/analogy/device.c
@@ -95,7 +95,7 @@ int a4l_rdproc_devs(char *page,
p += sprintf(p, |  %02d | %s | %s\n, i, status, name);
}
 
-   /* Handles any proc-file reading way */
+   /* Handle any proc-file reading way */
len = p - page - off;
/* If the requested size is greater than we provide,
   the read operation is over */
@@ -122,18 +122,18 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
struct proc_dir_entry *entry;
char *entry_name, *p;
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_attach: failed to allocate buffer\n);
return -ENOMEM;
}
 
-   /* Creates the proc file name */
+   /* Create the proc file name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Creates the proc entry */
+   /* Create the proc entry */
entry = create_proc_entry(entry_name, 0444, a4l_proc_root);
if (entry == NULL) {
__a4l_err(a4l_proc_attach: 
@@ -150,7 +150,7 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
wrap_proc_dir_entry_owner(entry);
 
   out_setup_proc_transfer:
-   /* Frees the file name buffer */
+   /* Free the file name buffer */
rtdm_free(entry_name);
 
return ret;
@@ -161,7 +161,7 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
char *entry_name, *p;
a4l_dev_t *dev = a4l_get_dev(cxt);
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_detach: 
@@ -169,14 +169,14 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
return;
}
 
-   /* Builds the name */
+   /* Build the name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Removes the proc file */
+   /* Remove the proc file */
remove_proc_entry(entry_name, a4l_proc_root);
 
-   /* Frees the temporary buffer */
+   /* Free the temporary buffer */
rtdm_free(entry_name);
 }
 
@@ -460,10 +460,10 @@ int a4l_ioctl_devcfg(a4l_cxt_t * cxt, void *arg)
}
/* Pre-initialization of the transfer structure */
a4l_presetup_transfer(cxt);
-   /* Links the device with the driver */
+   /* Link the device with the driver */
if ((ret = a4l_device_attach(cxt, arg)) != 0)
return ret;
-   /* Creates the transfer structure and
+   /* Create the transfer structure and
   the related proc file */
if ((ret = a4l_setup_transfer(cxt)) != 0 ||
(ret = a4l_proc_attach(cxt)) != 0)


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


[Xenomai-git] Alexis Berlemont : analogy: minor changes in comments

2010-02-08 Thread GIT version control
Module: xenomai-abe
Branch: analogy
Commit: 674d282a38a952621440f5e7d0bfa4d73b5daa9e
URL:
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=674d282a38a952621440f5e7d0bfa4d73b5daa9e

Author: Alexis Berlemont alexis.berlem...@gmail.com
Date:   Tue Feb  9 00:41:23 2010 +0100

analogy: minor changes in comments

---

 ksrc/drivers/analogy/device.c |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ksrc/drivers/analogy/device.c b/ksrc/drivers/analogy/device.c
index cd586f7..082053f 100644
--- a/ksrc/drivers/analogy/device.c
+++ b/ksrc/drivers/analogy/device.c
@@ -95,7 +95,7 @@ int a4l_rdproc_devs(char *page,
p += sprintf(p, |  %02d | %s | %s\n, i, status, name);
}
 
-   /* Handles any proc-file reading way */
+   /* Handle any proc-file reading way */
len = p - page - off;
/* If the requested size is greater than we provide,
   the read operation is over */
@@ -122,18 +122,18 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
struct proc_dir_entry *entry;
char *entry_name, *p;
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_attach: failed to allocate buffer\n);
return -ENOMEM;
}
 
-   /* Creates the proc file name */
+   /* Create the proc file name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Creates the proc entry */
+   /* Create the proc entry */
entry = create_proc_entry(entry_name, 0444, a4l_proc_root);
if (entry == NULL) {
__a4l_err(a4l_proc_attach: 
@@ -150,7 +150,7 @@ int a4l_proc_attach(a4l_cxt_t * cxt)
wrap_proc_dir_entry_owner(entry);
 
   out_setup_proc_transfer:
-   /* Frees the file name buffer */
+   /* Free the file name buffer */
rtdm_free(entry_name);
 
return ret;
@@ -161,7 +161,7 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
char *entry_name, *p;
a4l_dev_t *dev = a4l_get_dev(cxt);
 
-   /* Allocates the buffer for the file name */
+   /* Allocate the buffer for the file name */
entry_name = rtdm_malloc(A4L_NAMELEN + 4);
if ((p = entry_name) == NULL) {
__a4l_err(a4l_proc_detach: 
@@ -169,14 +169,14 @@ void a4l_proc_detach(a4l_cxt_t * cxt)
return;
}
 
-   /* Builds the name */
+   /* Build the name */
p += sprintf(p, %02d-, a4l_get_minor(cxt));
strncpy(p, dev-driver-board_name, A4L_NAMELEN);
 
-   /* Removes the proc file */
+   /* Remove the proc file */
remove_proc_entry(entry_name, a4l_proc_root);
 
-   /* Frees the temporary buffer */
+   /* Free the temporary buffer */
rtdm_free(entry_name);
 }
 
@@ -460,10 +460,10 @@ int a4l_ioctl_devcfg(a4l_cxt_t * cxt, void *arg)
}
/* Pre-initialization of the transfer structure */
a4l_presetup_transfer(cxt);
-   /* Links the device with the driver */
+   /* Link the device with the driver */
if ((ret = a4l_device_attach(cxt, arg)) != 0)
return ret;
-   /* Creates the transfer structure and
+   /* Create the transfer structure and
   the related proc file */
if ((ret = a4l_setup_transfer(cxt)) != 0 ||
(ret = a4l_proc_attach(cxt)) != 0)


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