diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-10-22 05:14:42 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-10-24 10:27:16 -0400 |
commit | c20ea8fd498636b8f7408bf10a305d58a4a05927 (patch) | |
tree | 609d8f77948a146d5dc52ed78a0f87836e2d1946 | |
parent | 7b889adbac8db4220e07c93fff0b0b235d08496b (diff) |
drm/i2c/tda998x: mark symbol static where possible
We get 1 warning when building kernel with W=1:
drivers/gpu/drm/i2c/tda998x_drv.c:1292:5: warning: no previous prototype for 'tda998x_audio_digital_mute' [-Wmissing-prototypes]
In fact, this function is only used in the file in which it is
declared and don't need a declaration, but can be made static.
So this patch marks this function with 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1477127682-3615-1-git-send-email-baoyou.xie@linaro.org
-rw-r--r-- | drivers/gpu/drm/i2c/tda998x_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 9798d400d817..af8683e0dd54 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c | |||
@@ -1289,7 +1289,8 @@ static void tda998x_audio_shutdown(struct device *dev, void *data) | |||
1289 | mutex_unlock(&priv->audio_mutex); | 1289 | mutex_unlock(&priv->audio_mutex); |
1290 | } | 1290 | } |
1291 | 1291 | ||
1292 | int tda998x_audio_digital_mute(struct device *dev, void *data, bool enable) | 1292 | static int |
1293 | tda998x_audio_digital_mute(struct device *dev, void *data, bool enable) | ||
1293 | { | 1294 | { |
1294 | struct tda998x_priv *priv = dev_get_drvdata(dev); | 1295 | struct tda998x_priv *priv = dev_get_drvdata(dev); |
1295 | 1296 | ||