Merge branch 'drm-next-3.12' of git://people.freedesktop.org/~agd5f/linux into drm...
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / radeon / atombios_dp.c
index 3569d89b9e41c9c69250bffc8b75fce591b69653..00885417ffffd2e8ad695a1a01059d40df68c011 100644 (file)
@@ -50,7 +50,7 @@ static char *pre_emph_names[] = {
  * or from atom. Note that atom operates on
  * dw units.
  */
-static void radeon_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le)
+void radeon_atom_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le)
 {
 #ifdef __BIG_ENDIAN
        u8 src_tmp[20], dst_tmp[20]; /* used for byteswapping */
@@ -100,7 +100,7 @@ static int radeon_process_aux_ch(struct radeon_i2c_chan *chan,
 
        base = (unsigned char *)(rdev->mode_info.atom_context->scratch + 1);
 
-       radeon_copy_swap(base, send, send_bytes, true);
+       radeon_atom_copy_swap(base, send, send_bytes, true);
 
        args.v1.lpAuxRequest = cpu_to_le16((u16)(0 + 4));
        args.v1.lpDataOut = cpu_to_le16((u16)(16 + 4));
@@ -137,7 +137,7 @@ static int radeon_process_aux_ch(struct radeon_i2c_chan *chan,
                recv_bytes = recv_size;
 
        if (recv && recv_size)
-               radeon_copy_swap(recv, base + 16, recv_bytes, false);
+               radeon_atom_copy_swap(recv, base + 16, recv_bytes, false);
 
        return recv_bytes;
 }