Skip to content

Commit fb7d509

Browse files
committed
drm/msm/dp: prefix all symbols with msm_dp_
For historical reasons a lot of symbols in the MSM DisplayPort driver used the generic dp_ prefix. Perform a mass-rename of those symbols to use msm_dp prefix. Basically this is a result of the following script: sed drivers/gpu/drm/msm/dp/* -i -e 's/\<dp_/msm_dp_/g' sed drivers/gpu/drm/msm/dp/* -i -e 's/"msm_dp_/"dp_/g' sed drivers/gpu/drm/msm/dp/* -i -e 's/msm_\(dp_sdp_header\|dp_sdp\)\>/\1/g' Yes, this also results in renaming of several struct fields in addition to renaming the structs and functions, but I think the simple solution is better than the more complex one. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/622211/ Link: https://lore.kernel.org/r/[email protected]
1 parent 4a6fd06 commit fb7d509

20 files changed

+1882
-1882
lines changed

drivers/gpu/drm/msm/dp/dp_audio.c

Lines changed: 147 additions & 147 deletions
Large diffs are not rendered by default.

drivers/gpu/drm/msm/dp/dp_audio.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,58 +13,58 @@
1313
#include <sound/hdmi-codec.h>
1414

1515
/**
16-
* struct dp_audio
16+
* struct msm_dp_audio
1717
* @lane_count: number of lanes configured in current session
1818
* @bw_code: link rate's bandwidth code for current session
1919
*/
20-
struct dp_audio {
20+
struct msm_dp_audio {
2121
u32 lane_count;
2222
u32 bw_code;
2323
};
2424

2525
/**
26-
* dp_audio_get()
26+
* msm_dp_audio_get()
2727
*
2828
* Creates and instance of dp audio.
2929
*
3030
* @pdev: caller's platform device instance.
31-
* @panel: an instance of dp_panel module.
32-
* @catalog: an instance of dp_catalog module.
31+
* @panel: an instance of msm_dp_panel module.
32+
* @catalog: an instance of msm_dp_catalog module.
3333
*
3434
* Returns the error code in case of failure, otherwize
35-
* an instance of newly created dp_module.
35+
* an instance of newly created msm_dp_module.
3636
*/
37-
struct dp_audio *dp_audio_get(struct platform_device *pdev,
38-
struct dp_panel *panel,
39-
struct dp_catalog *catalog);
37+
struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev,
38+
struct msm_dp_panel *panel,
39+
struct msm_dp_catalog *catalog);
4040

4141
/**
42-
* dp_register_audio_driver()
42+
* msm_dp_register_audio_driver()
4343
*
4444
* Registers DP device with hdmi_codec interface.
4545
*
4646
* @dev: DP device instance.
47-
* @dp_audio: an instance of dp_audio module.
47+
* @msm_dp_audio: an instance of msm_dp_audio module.
4848
*
4949
*
5050
* Returns the error code in case of failure, otherwise
5151
* zero on success.
5252
*/
53-
int dp_register_audio_driver(struct device *dev,
54-
struct dp_audio *dp_audio);
53+
int msm_dp_register_audio_driver(struct device *dev,
54+
struct msm_dp_audio *msm_dp_audio);
5555

56-
void dp_unregister_audio_driver(struct device *dev, struct dp_audio *dp_audio);
56+
void msm_dp_unregister_audio_driver(struct device *dev, struct msm_dp_audio *msm_dp_audio);
5757

5858
/**
59-
* dp_audio_put()
59+
* msm_dp_audio_put()
6060
*
61-
* Cleans the dp_audio instance.
61+
* Cleans the msm_dp_audio instance.
6262
*
63-
* @dp_audio: an instance of dp_audio.
63+
* @msm_dp_audio: an instance of msm_dp_audio.
6464
*/
65-
void dp_audio_put(struct dp_audio *dp_audio);
65+
void msm_dp_audio_put(struct msm_dp_audio *msm_dp_audio);
6666

67-
int dp_audio_hw_params(struct device *dev,
67+
int msm_dp_audio_hw_params(struct device *dev,
6868
void *data,
6969
struct hdmi_codec_daifmt *daifmt,
7070
struct hdmi_codec_params *params);

0 commit comments

Comments
 (0)