From: Marcus Cooper <[email protected]>

There is a lot of code in the SPDIF driver that does
nothing. This patch removes all the headers which
are deemed unnecessary.

Signed-off-by: Marcus Cooper <[email protected]>
---
 sound/soc/sunxi/spdif/sndspdif.c       |  2 --
 sound/soc/sunxi/spdif/sndspdif.h       | 19 -------------------
 sound/soc/sunxi/spdif/sunxi_sndspdif.c |  3 ---
 sound/soc/sunxi/spdif/sunxi_sndspdif.h | 18 ------------------
 sound/soc/sunxi/spdif/sunxi_spdif.c    |  1 -
 sound/soc/sunxi/spdif/sunxi_spdma.c    |  1 -
 sound/soc/sunxi/spdif/sunxi_spdma.h    | 29 -----------------------------
 7 files changed, 73 deletions(-)
 delete mode 100644 sound/soc/sunxi/spdif/sndspdif.h
 delete mode 100644 sound/soc/sunxi/spdif/sunxi_sndspdif.h
 delete mode 100644 sound/soc/sunxi/spdif/sunxi_spdma.h

diff --git a/sound/soc/sunxi/spdif/sndspdif.c b/sound/soc/sunxi/spdif/sndspdif.c
index 73e4a95..c41a06b 100644
--- a/sound/soc/sunxi/spdif/sndspdif.c
+++ b/sound/soc/sunxi/spdif/sndspdif.c
@@ -23,8 +23,6 @@
 #include <plat/sys_config.h>
 #include <linux/io.h>
 
-#include "sndspdif.h"
-
 #define SNDSPDIF_RATES  (SNDRV_PCM_RATE_8000_192000|SNDRV_PCM_RATE_KNOT)
 #define SNDSPDIF_FORMATS (SNDRV_PCM_FMTBIT_S16_LE)
 
diff --git a/sound/soc/sunxi/spdif/sndspdif.h b/sound/soc/sunxi/spdif/sndspdif.h
deleted file mode 100644
index c47214b..0000000
--- a/sound/soc/sunxi/spdif/sndspdif.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * sound\soc\sunxi\spdif\sndspdif.h
- * (C) Copyright 2007-2011
- * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
- * chenpailin <[email protected]>
- *
- * some simple description for this code
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- */
-
-#ifndef _SNDSPDIF_H
-#define _SNDSPDIF_H
-
-#endif
diff --git a/sound/soc/sunxi/spdif/sunxi_sndspdif.c 
b/sound/soc/sunxi/spdif/sunxi_sndspdif.c
index 885e7ae..8a13fd6 100644
--- a/sound/soc/sunxi/spdif/sunxi_sndspdif.c
+++ b/sound/soc/sunxi/spdif/sunxi_sndspdif.c
@@ -25,9 +25,6 @@
 #include <linux/io.h>
 
 #include "sunxi_spdif.h"
-#include "sunxi_spdma.h"
-
-#include "sndspdif.h"
 
 static struct clk *xtal;
 static int clk_users;
diff --git a/sound/soc/sunxi/spdif/sunxi_sndspdif.h 
b/sound/soc/sunxi/spdif/sunxi_sndspdif.h
deleted file mode 100644
index 5671f6f..0000000
--- a/sound/soc/sunxi/spdif/sunxi_sndspdif.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * sound\soc\sunxi\spdif\sunxi_sndspdif.h
- * (C) Copyright 2007-2011
- * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
- * chenpailin <[email protected]>
- *
- * some simple description for this code
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- */
-#ifndef SUNXI_SNDSPDIF_H_
-#define SUNXI_SNDSPDIF_H_
-
-#endif
diff --git a/sound/soc/sunxi/spdif/sunxi_spdif.c 
b/sound/soc/sunxi/spdif/sunxi_spdif.c
index 88389ae..3066d24 100644
--- a/sound/soc/sunxi/spdif/sunxi_spdif.c
+++ b/sound/soc/sunxi/spdif/sunxi_spdif.c
@@ -34,7 +34,6 @@
 #include <asm/dma.h>
 #include <plat/dma_compat.h>
 
-#include "sunxi_spdma.h"
 #include "sunxi_spdif.h"
 
 static int regsave[6];
diff --git a/sound/soc/sunxi/spdif/sunxi_spdma.c 
b/sound/soc/sunxi/spdif/sunxi_spdma.c
index ec4ac99..67aa30e 100644
--- a/sound/soc/sunxi/spdif/sunxi_spdma.c
+++ b/sound/soc/sunxi/spdif/sunxi_spdma.c
@@ -32,7 +32,6 @@
 #include <plat/sys_config.h>
 
 #include "sunxi_spdif.h"
-#include "sunxi_spdma.h"
 
 static volatile unsigned int dmasrc = 0;
 static volatile unsigned int dmadst = 0;
diff --git a/sound/soc/sunxi/spdif/sunxi_spdma.h 
b/sound/soc/sunxi/spdif/sunxi_spdma.h
deleted file mode 100644
index 71bfc98..0000000
--- a/sound/soc/sunxi/spdif/sunxi_spdma.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * sound\soc\sunxi\spdif\sunxi_spdma.h
- * (C) Copyright 2007-2011
- * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
- * chenpailin <[email protected]>
- *
- * some simple description for this code
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- */
-#ifndef SUNXI_SPDMA_H_
-#define SUNXI_SPDMA_H_
-
-#define ST_RUNNING    (1<<0)
-#define ST_OPENED     (1<<1)
-
-#define SUNXI_DAI_SPDIF                        1
-
-enum sunxidma_buffresult {
-       SUNXI_RES_OK,
-       SUNXI_RES_ERR,
-       SUNXI_RES_ABORT
-};
-
-#endif
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to