mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202410250305.UHKDhtxy-lkp@intel.com/ Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/622211/ Link: https://lore.kernel.org/r/20241029-msm-dp-rename-v2-1-13c5c03fad44@linaro.org
75 lines
1.7 KiB
C
75 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DP_AUDIO_H_
|
|
#define _DP_AUDIO_H_
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include "dp_panel.h"
|
|
#include "dp_catalog.h"
|
|
#include <sound/hdmi-codec.h>
|
|
|
|
/**
|
|
* struct msm_dp_audio
|
|
* @lane_count: number of lanes configured in current session
|
|
* @bw_code: link rate's bandwidth code for current session
|
|
*/
|
|
struct msm_dp_audio {
|
|
u32 lane_count;
|
|
u32 bw_code;
|
|
};
|
|
|
|
/**
|
|
* msm_dp_audio_get()
|
|
*
|
|
* Creates and instance of dp audio.
|
|
*
|
|
* @pdev: caller's platform device instance.
|
|
* @panel: an instance of msm_dp_panel module.
|
|
* @catalog: an instance of msm_dp_catalog module.
|
|
*
|
|
* Returns the error code in case of failure, otherwize
|
|
* an instance of newly created msm_dp_module.
|
|
*/
|
|
struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev,
|
|
struct msm_dp_panel *panel,
|
|
struct msm_dp_catalog *catalog);
|
|
|
|
/**
|
|
* msm_dp_register_audio_driver()
|
|
*
|
|
* Registers DP device with hdmi_codec interface.
|
|
*
|
|
* @dev: DP device instance.
|
|
* @msm_dp_audio: an instance of msm_dp_audio module.
|
|
*
|
|
*
|
|
* Returns the error code in case of failure, otherwise
|
|
* zero on success.
|
|
*/
|
|
int msm_dp_register_audio_driver(struct device *dev,
|
|
struct msm_dp_audio *msm_dp_audio);
|
|
|
|
void msm_dp_unregister_audio_driver(struct device *dev, struct msm_dp_audio *msm_dp_audio);
|
|
|
|
/**
|
|
* msm_dp_audio_put()
|
|
*
|
|
* Cleans the msm_dp_audio instance.
|
|
*
|
|
* @msm_dp_audio: an instance of msm_dp_audio.
|
|
*/
|
|
void msm_dp_audio_put(struct msm_dp_audio *msm_dp_audio);
|
|
|
|
int msm_dp_audio_hw_params(struct device *dev,
|
|
void *data,
|
|
struct hdmi_codec_daifmt *daifmt,
|
|
struct hdmi_codec_params *params);
|
|
|
|
#endif /* _DP_AUDIO_H_ */
|
|
|
|
|