diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-18 15:22:24 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-12-29 02:47:26 -0500 |
commit | 606df4e024bc8e921dd516cdb7160250658d9b7a (patch) | |
tree | 88fc9ac1250759bb16ac3b25131cb80b0f44d130 /drivers/gpu | |
parent | b358d0a6252d8ed16afb20caaec35b24c76074bb (diff) |
drm/i915: fix sparse warnings: move 'extern' decls to header file
Move 'extern'-decls from "intel_dvo.c" to "dvo.h", as "dvo.h" is
included by and only by files where the symbols are either defined or
used.
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/dvo.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_dvo.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h index e80866c5e1ae..e747ac42fe3a 100644 --- a/drivers/gpu/drm/i915/dvo.h +++ b/drivers/gpu/drm/i915/dvo.h | |||
@@ -148,4 +148,10 @@ struct intel_dvo_dev_ops { | |||
148 | void (*dump_regs)(struct intel_dvo_device *dvo); | 148 | void (*dump_regs)(struct intel_dvo_device *dvo); |
149 | }; | 149 | }; |
150 | 150 | ||
151 | extern struct intel_dvo_dev_ops sil164_ops; | ||
152 | extern struct intel_dvo_dev_ops ch7xxx_ops; | ||
153 | extern struct intel_dvo_dev_ops ivch_ops; | ||
154 | extern struct intel_dvo_dev_ops tfp410_ops; | ||
155 | extern struct intel_dvo_dev_ops ch7017_ops; | ||
156 | |||
151 | #endif /* _INTEL_DVO_H */ | 157 | #endif /* _INTEL_DVO_H */ |
diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c index cc621c82ad2b..8b8d6e65cd3f 100644 --- a/drivers/gpu/drm/i915/intel_dvo.c +++ b/drivers/gpu/drm/i915/intel_dvo.c | |||
@@ -37,12 +37,6 @@ | |||
37 | #define CH7xxx_ADDR 0x76 | 37 | #define CH7xxx_ADDR 0x76 |
38 | #define TFP410_ADDR 0x38 | 38 | #define TFP410_ADDR 0x38 |
39 | 39 | ||
40 | extern struct intel_dvo_dev_ops sil164_ops; | ||
41 | extern struct intel_dvo_dev_ops ch7xxx_ops; | ||
42 | extern struct intel_dvo_dev_ops ivch_ops; | ||
43 | extern struct intel_dvo_dev_ops tfp410_ops; | ||
44 | extern struct intel_dvo_dev_ops ch7017_ops; | ||
45 | |||
46 | static struct intel_dvo_device intel_dvo_devices[] = { | 40 | static struct intel_dvo_device intel_dvo_devices[] = { |
47 | { | 41 | { |
48 | .type = INTEL_DVO_CHIP_TMDS, | 42 | .type = INTEL_DVO_CHIP_TMDS, |