aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/fdump.c
diff options
context:
space:
mode:
authorJaswinder Singh <jaswinder@infradead.org>2008-06-22 18:24:19 +0530
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-04-06 14:34:44 -0700
commit4f8d182513690b42b20fb81e487be4cd4729e27c (patch)
tree15f9ca9b4a59e1facec2460ca9eadde15d9646f0 /drivers/media/dvb/ttpci/fdump.c
parentfirmware: convert av7110 driver to request_firmware() (diff)
downloadlinux-dev-4f8d182513690b42b20fb81e487be4cd4729e27c.tar.xz
linux-dev-4f8d182513690b42b20fb81e487be4cd4729e27c.zip
Remove fdump tool for av7110 firmware
There's no point in this, since the user can use the BUILTIN_FIRMWARE option to include arbitrary firmware files directly in the kernel image. Thanks to David Woodhouse for help. Signed-off-by: Jaswinder Singh <jaswinder@infradead.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/dvb/ttpci/fdump.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/media/dvb/ttpci/fdump.c b/drivers/media/dvb/ttpci/fdump.c
deleted file mode 100644
index c90001d35e7d..000000000000
--- a/drivers/media/dvb/ttpci/fdump.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int main(int argc, char **argv)
-{
- unsigned char buf[8];
- unsigned int i, count, bytes = 0;
- FILE *fd_in, *fd_out;
-
- if (argc != 4) {
- fprintf(stderr, "\n\tusage: %s <ucode.bin> <array_name> <output_name>\n\n", argv[0]);
- return -1;
- }
-
- fd_in = fopen(argv[1], "rb");
- if (fd_in == NULL) {
- fprintf(stderr, "firmware file '%s' not found\n", argv[1]);
- return -1;
- }
-
- fd_out = fopen(argv[3], "w+");
- if (fd_out == NULL) {
- fprintf(stderr, "cannot create output file '%s'\n", argv[3]);
- return -1;
- }
-
- fprintf(fd_out, "\n#include <asm/types.h>\n\nu8 %s [] = {", argv[2]);
-
- while ((count = fread(buf, 1, 8, fd_in)) > 0) {
- fprintf(fd_out, "\n\t");
- for (i = 0; i < count; i++, bytes++)
- fprintf(fd_out, "0x%02x, ", buf[i]);
- }
-
- fprintf(fd_out, "\n};\n\n");
-
- fclose(fd_in);
- fclose(fd_out);
-
- return 0;
-}