]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i2c/tda998x: Make tda998x_audio_digital_mute static
authorSamuel Zou <zou_wei@huawei.com>
Thu, 7 May 2020 02:49:28 +0000 (10:49 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 9 May 2020 21:06:07 +0000 (23:06 +0200)
Fix the following sparse warning:

drivers/gpu/drm/i2c/tda998x_drv.c:1136:5: warning:
symbol 'tda998x_audio_digital_mute' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1588819768-11818-1-git-send-email-zou_wei@huawei.com
drivers/gpu/drm/i2c/tda998x_drv.c

index 3c90d7ae09d621b6c88b3aab573be1429bdc839a..9517f522dcb9c20b4dadd6b76451b1e9b7d3829d 100644 (file)
@@ -1133,7 +1133,8 @@ static void tda998x_audio_shutdown(struct device *dev, void *data)
        mutex_unlock(&priv->audio_mutex);
 }
 
-int tda998x_audio_digital_mute(struct device *dev, void *data, bool enable)
+static int tda998x_audio_digital_mute(struct device *dev, void *data,
+                                     bool enable)
 {
        struct tda998x_priv *priv = dev_get_drvdata(dev);