diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-01-06 10:46:34 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-01-07 11:45:39 -0500 |
commit | 4cf3b4943db3d26d545c461810e8c5cffa1af83a (patch) | |
tree | 506b442e9d2abba584a006222a9f0acf1ce63bc3 /drivers/gpu/drm | |
parent | 6c149d96d36584fa631ff51aae258fbfcfbe2079 (diff) |
drivers: gpu: Move prototype declaration to header file radeon_mode.h from atombios_i2c.c
Move prototype declaration of function radeon_atom_copy_swap() to header
file drm/radeon/radeon_mode.h because it is used by more than one file.
This eliminates the following warnings in drm/radeon/atombios_dp.c:
drivers/gpu/drm/radeon/atombios_dp.c:53:6: warning: no previous prototype for ‘radeon_atom_copy_swap’ [-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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_i2c.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_i2c.c b/drivers/gpu/drm/radeon/atombios_i2c.c index f685035dbe39..b5162c3b6111 100644 --- a/drivers/gpu/drm/radeon/atombios_i2c.c +++ b/drivers/gpu/drm/radeon/atombios_i2c.c | |||
@@ -27,8 +27,6 @@ | |||
27 | #include "radeon.h" | 27 | #include "radeon.h" |
28 | #include "atom.h" | 28 | #include "atom.h" |
29 | 29 | ||
30 | extern void radeon_atom_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le); | ||
31 | |||
32 | #define TARGET_HW_I2C_CLOCK 50 | 30 | #define TARGET_HW_I2C_CLOCK 50 |
33 | 31 | ||
34 | /* these are a limitation of ProcessI2cChannelTransaction not the hw */ | 32 | /* these are a limitation of ProcessI2cChannelTransaction not the hw */ |
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 3f0dd664af90..fd19f7adf509 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -666,6 +666,7 @@ extern void radeon_atom_ext_encoder_setup_ddc(struct drm_encoder *encoder); | |||
666 | extern struct drm_encoder *radeon_get_external_encoder(struct drm_encoder *encoder); | 666 | extern struct drm_encoder *radeon_get_external_encoder(struct drm_encoder *encoder); |
667 | extern int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, | 667 | extern int radeon_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, |
668 | u8 write_byte, u8 *read_byte); | 668 | u8 write_byte, u8 *read_byte); |
669 | void radeon_atom_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le); | ||
669 | 670 | ||
670 | extern void radeon_i2c_init(struct radeon_device *rdev); | 671 | extern void radeon_i2c_init(struct radeon_device *rdev); |
671 | extern void radeon_i2c_fini(struct radeon_device *rdev); | 672 | extern void radeon_i2c_fini(struct radeon_device *rdev); |