aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2014-03-17 20:42:23 -0400
committerChristoph Hellwig <hch@lst.de>2014-05-28 06:11:33 -0400
commit9f6620a318e87d73f8ce3daa7f84efc739d1fa2d (patch)
tree066aec1daa60668df713f0f489f13799d2658457
parenta469dc2765dca3c07ae356b21e0cd95178249251 (diff)
scsi/NCR5380: reduce depth of sun3_scsi nested includes
Move the #include "NCR5380.h" out of the sun3_scsi.h header file and into the driver .c files, like all the other NCR5380 drivers in the tree. This improves uniformity and reduces the depth of nested includes. The sequence of #include's, #define's and #if's no longer does my head in. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Acked-by: Sam Creasey <sammy@sammy.net> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/scsi/sun3_scsi.c1
-rw-r--r--drivers/scsi/sun3_scsi.h8
-rw-r--r--drivers/scsi/sun3_scsi_vme.c1
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c
index 99466e64e507..ac9c29b55a33 100644
--- a/drivers/scsi/sun3_scsi.c
+++ b/drivers/scsi/sun3_scsi.c
@@ -71,6 +71,7 @@
71#include "scsi.h" 71#include "scsi.h"
72#include <scsi/scsi_host.h> 72#include <scsi/scsi_host.h>
73#include "sun3_scsi.h" 73#include "sun3_scsi.h"
74#include "NCR5380.h"
74 75
75/* #define OLDDMA */ 76/* #define OLDDMA */
76 77
diff --git a/drivers/scsi/sun3_scsi.h b/drivers/scsi/sun3_scsi.h
index 5d2ca648657f..e96a37cf06ac 100644
--- a/drivers/scsi/sun3_scsi.h
+++ b/drivers/scsi/sun3_scsi.h
@@ -29,8 +29,8 @@
29 * 1+ (800) 334-5454 29 * 1+ (800) 334-5454
30 */ 30 */
31 31
32#ifndef SUN3_NCR5380_H 32#ifndef SUN3_SCSI_H
33#define SUN3_NCR5380_H 33#define SUN3_SCSI_H
34 34
35#define SUN3SCSI_PUBLIC_RELEASE 1 35#define SUN3SCSI_PUBLIC_RELEASE 1
36 36
@@ -182,7 +182,5 @@ struct sun3_udc_regs {
182 182
183#define VME_DATA24 0x3d00 183#define VME_DATA24 0x3d00
184 184
185#include "NCR5380.h" 185#endif /* SUN3_SCSI_H */
186
187#endif /* SUN3_NCR5380_H */
188 186
diff --git a/drivers/scsi/sun3_scsi_vme.c b/drivers/scsi/sun3_scsi_vme.c
index 95031d571cd0..9e7974b56f12 100644
--- a/drivers/scsi/sun3_scsi_vme.c
+++ b/drivers/scsi/sun3_scsi_vme.c
@@ -42,6 +42,7 @@
42#include "initio.h" 42#include "initio.h"
43#include <scsi/scsi_host.h> 43#include <scsi/scsi_host.h>
44#include "sun3_scsi.h" 44#include "sun3_scsi.h"
45#include "NCR5380.h"
45 46
46extern int sun3_map_test(unsigned long, char *); 47extern int sun3_map_test(unsigned long, char *);
47 48