drivers: gpu: Move prototype declarations to header file radeon_mode.h from radeon_at...
authorRashika Kheria <rashika.kheria@gmail.com>
Tue, 7 Jan 2014 18:06:31 +0000 (13:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2014 18:06:31 +0000 (13:06 -0500)
Move prototype declarations of functions radeon_get_encoder_enum() and
radeon_link_encoder_connector() to header file drm/radeon/radeon_mode.h
because they are used by more than one file.

This eliminates the following warnings in drm/radeon/radeon_encoders.c:
drivers/gpu/drm/radeon/radeon_encoders.c:86:1: warning: no previous prototype for ‘radeon_get_encoder_enum’ [-Wmissing-prototypes]
drivers/gpu/drm/radeon/radeon_encoders.c:162:1: warning: no previous prototype for ‘radeon_link_encoder_connector’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_mode.h

index 431e607613f03616fd0baa5108ec66708567ced9..80a56ad40c52d0dfef954780893c8f8a9885b0a2 100644 (file)
 #include "atom.h"
 #include "atom-bits.h"
 
-/* from radeon_encoder.c */
-extern uint32_t
-radeon_get_encoder_enum(struct drm_device *dev, uint32_t supported_device,
-                       uint8_t dac);
-extern void radeon_link_encoder_connector(struct drm_device *dev);
 extern void
 radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum,
                        uint32_t supported_device, u16 caps);
index e4c1b8d7303f8a07d8f412d01514e6f3ceabc770..6651177110f08cd5afb9088f4849ad3f987f5a1b 100644 (file)
 #include <asm/pci-bridge.h>
 #endif /* CONFIG_PPC_PMAC */
 
-/* from radeon_encoder.c */
-extern uint32_t
-radeon_get_encoder_enum(struct drm_device *dev, uint32_t supported_device,
-                       uint8_t dac);
-extern void radeon_link_encoder_connector(struct drm_device *dev);
-
 /* from radeon_legacy_encoder.c */
 extern void
 radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum,
index 286f9862fbd1f504843e0931c7b627926cfface7..28bba631b80c69bb3319a9ba0735e63747a7e901 100644 (file)
@@ -643,6 +643,10 @@ radeon_add_legacy_connector(struct drm_device *dev,
                            struct radeon_i2c_bus_rec *i2c_bus,
                            uint16_t connector_object_id,
                            struct radeon_hpd *hpd);
+extern uint32_t
+radeon_get_encoder_enum(struct drm_device *dev, uint32_t supported_device,
+                       uint8_t dac);
+extern void radeon_link_encoder_connector(struct drm_device *dev);
 
 extern enum radeon_tv_std
 radeon_combios_get_tv_info(struct radeon_device *rdev);