From 6807eba35cc91e109fed1df6038c424496cf2add Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 9 Jan 2006 17:17:32 +0000 Subject: Several i2C cleanups to compile on both current linux and kernels >2.6.15 kernel-sync Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/gentree.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'v4l/scripts') diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl index c67489d2c..4885b08ad 100644 --- a/v4l/scripts/gentree.pl +++ b/v4l/scripts/gentree.pl @@ -130,6 +130,14 @@ sub filter_source ($$) { $level++; next; } + if ($line =~ /^#ifndef.\s*I2C_DF_DUMMY/) { + chomp($line); + $state{$level} = "if"; + $if{$level} = 1; + print STDERR "/* BP #if 1 state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG; + $level++; + next; + } if ($line =~ /^#if.*I2C_CLASS_TV_DIGITAL/) { chomp($line); $state{$level} = "if"; -- cgit v1.2.3