diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-09-12 11:38:26 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-10-17 08:12:00 +0200 |
commit | 759962b5dc99bf22d2894a41d29847ce76ac3bc8 (patch) | |
tree | b1d97ebfb4df0e32111201492810fedf42fc108f /drivers/gpu | |
parent | 7d3618fdeef1991f8fc060b7919212ea1a02fc9f (diff) | |
download | lwn-759962b5dc99bf22d2894a41d29847ce76ac3bc8.tar.gz lwn-759962b5dc99bf22d2894a41d29847ce76ac3bc8.zip |
drm: bridge: adv7511: make adv7511_hdmi_hw_params() static
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@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200912033826.142923-1-yanaijie@huawei.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 6 |
1 files 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; |