]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/i915: fix sparse warnings: move 'extern' decls to header file
authorHannes Eder <hannes@hanneseder.net>
Thu, 18 Dec 2008 20:22:24 +0000 (21:22 +0100)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:26 +0000 (17:47 +1000)
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>
drivers/gpu/drm/i915/dvo.h
drivers/gpu/drm/i915/intel_dvo.c

index e80866c5e1aec83fe4b2feefe11bae2788d2b555..e747ac42fe3a9b117ca8e99235fccad7d925a40d 100644 (file)
@@ -148,4 +148,10 @@ struct intel_dvo_dev_ops {
        void (*dump_regs)(struct intel_dvo_device *dvo);
 };
 
+extern struct intel_dvo_dev_ops sil164_ops;
+extern struct intel_dvo_dev_ops ch7xxx_ops;
+extern struct intel_dvo_dev_ops ivch_ops;
+extern struct intel_dvo_dev_ops tfp410_ops;
+extern struct intel_dvo_dev_ops ch7017_ops;
+
 #endif /* _INTEL_DVO_H */
index cc621c82ad2b11254f89de3280f6d427f335a62f..8b8d6e65cd3fe2179056bce7860c61c74895820c 100644 (file)
 #define CH7xxx_ADDR    0x76
 #define TFP410_ADDR    0x38
 
-extern struct intel_dvo_dev_ops sil164_ops;
-extern struct intel_dvo_dev_ops ch7xxx_ops;
-extern struct intel_dvo_dev_ops ivch_ops;
-extern struct intel_dvo_dev_ops tfp410_ops;
-extern struct intel_dvo_dev_ops ch7017_ops;
-
 static struct intel_dvo_device intel_dvo_devices[] = {
        {
                .type = INTEL_DVO_CHIP_TMDS,