[PATCH] drm: bridge: adv7511: make adv7511_hdmi_hw_params() static
Jason Yan
yanaijie at huawei.com
Mon Sep 28 14:07:43 UTC 2020
ping...
在 2020/9/12 11:38, Jason Yan 写道:
> This eliminates the following sparse warning:
>
> drivers/gpu/drm/bridge/adv7511/adv7511_audio.c:58:5: warning: symbol
> 'adv7511_hdmi_hw_params' was not declared. Should it be static?
>
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Jason Yan <yanaijie at huawei.com>
> ---
> drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> index f101dd2819b5..45838bd08d37 100644
> --- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> @@ -55,9 +55,9 @@ static int adv7511_update_cts_n(struct adv7511 *adv7511)
> return 0;
> }
>
> -int adv7511_hdmi_hw_params(struct device *dev, void *data,
> - struct hdmi_codec_daifmt *fmt,
> - struct hdmi_codec_params *hparms)
> +static int adv7511_hdmi_hw_params(struct device *dev, void *data,
> + struct hdmi_codec_daifmt *fmt,
> + struct hdmi_codec_params *hparms)
> {
> struct adv7511 *adv7511 = dev_get_drvdata(dev);
> unsigned int audio_source, i2s_format = 0;
>
More information about the dri-devel
mailing list