[PATCH] drm: bridge: adv7511: make adv7511_hdmi_hw_params() static
Sam Ravnborg
sam at ravnborg.org
Sat Oct 17 06:17:32 UTC 2020
Hi Jason,
Thanks, applied to drm-misc-next.
As for the other patch this will appear in -next in a few weeks.
Sam
On Sat, Sep 12, 2020 at 11:38:26AM +0800, Jason Yan wrote:
> 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;
> --
> 2.25.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
More information about the dri-devel
mailing list