]> git.baikalelectronics.ru Git - kernel.git/commit
[media] drxd_map_firm.h: Remove unused lines
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 25 Mar 2011 13:21:31 +0000 (10:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 10:26:25 +0000 (07:26 -0300)
commit9192cf748f6c9b9d9550bbd160dd22a4d90f0e2d
tree570904b08d9efe3dce0fe72fbd16db0c3700c9af
parentd6f6501f509cf9f2c0ea136352b9109752f06881
[media] drxd_map_firm.h: Remove unused lines

This file is big. It has 12000+ lines! Most of the defined stuff aren't
used anyware inside the driver, so we can just remove most of the lines
and still keep everything that have any interest for the driver.

If anyone ever need the other devices, it will be stored at git logs, so
it is easy to recover.

The diff result is impressive:
 1 files changed, 1013 insertions(+), 12694 deletions(-)
 rewrite drivers/media/dvb/frontends/drxd_map_firm.h (90%)

As a sideback effect, drxd driver will likely compile faster, and
checkpatch.pl can run on this file without taking (literally) hours.

The code cleanup was done using this small script:
$ for i in `perl -ne 'print "$1\n" if (m/define\s+([^\s+]+)/)' drxd_map_firm.h`; do if [ "`grep $i drivers/media/dvb/frontends/drxd*.[ch]`" != "" ] ; then echo $i; fi; done|sort|uniq >used_symbols
$ grep -f used_symbols drxd_map_firm.h >defines

And then deleting the old #define lines, replacing by "defines" file content.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/drxd_map_firm.h