summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-07-07 13:58:38 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-07-07 13:58:38 +0000
commitf8f68583aabe1033ab048108d55d6b51db70ec55 (patch)
tree949262ed76a884711e07ab0222a45a56f01ec0cd /v4l
parent26f1f9728e5e3fdea7f573b5b159089b3fea1a6d (diff)
downloadmediapointer-dvb-s2-f8f68583aabe1033ab048108d55d6b51db70ec55.tar.gz
mediapointer-dvb-s2-f8f68583aabe1033ab048108d55d6b51db70ec55.tar.bz2
scripts/buildpatch:
- Added code to eliminate #if 0 and #if 1 when submiting pathes to new kernel. Miscelaneous CodingStyle stuff. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/ChangeLog22
-rw-r--r--v4l/scripts/buildpatch14
2 files changed, 36 insertions, 0 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index a9e3697c2..e753cf823 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,25 @@
+2005-07-07 14:00 mchehab
+ * scripts/buildpatch:
+
+ - Added code to eliminate #if 0 and #if 1 when submiting pathes
+ to new kernel.
+
+ * cx88-video.c,cx88-tvaudio.c:
+
+ - Nexted #if 0 commented (it breaks buildpatch)
+
+ * cx88-reg.h:
+
+ - Changed comment location to remove it from kernel patch
+
+ * cx88-input.c:
+
+ - "Linux indented" using Lindent.
+ - Useless comments removed.
+ - // coments changed to /* */
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-07-07 13:08 mchehab
* scripts/buildpatch:
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch
index 6cffe863a..fa9322fdf 100644
--- a/v4l/scripts/buildpatch
+++ b/v4l/scripts/buildpatch
@@ -62,6 +62,20 @@ sub filter_source ($$) {
if ($line =~ m/^#include \"compat.h\"/) {
next;
}
+ if ($line =~ /^#if 0/) {
+ chomp($line);
+ $state = "if";
+ $if = 0;
+ print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
+ next;
+ }
+ if ($line =~ /^#if 1/) {
+ chomp($line);
+ $state = "if";
+ $if = 1;
+ print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
+ next;
+ }
if ($line =~ /^#if.*BTTV_VERSION_CODE/) {
chomp($line);
$state = "if";