drm/i2c/tda998x: Make tda998x_audio_digital_mute static
Subsystems (2)
PATCH 1/1 drm/i2c/tda998x: Make tda998x_audio_digital_mute static
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 <[email protected]>
Signed-off-by Samuel Zou <[email protected]>
--- drivers/gpu/drm/i2c/tda998x_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i2c/tda998x_drv.c +2 -1
@@ -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);
Signature · 1 line
2.6.2
Sam Ravnborg
AppliedQuoted 7 lines · Samuel Zou
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 <[email protected]>Signed-off-by Samuel Zou <[email protected]>
Thanks.
Pushed to drm-misc-next, so it will appear in next merge window.
Sam
Quoted 25 lines
--- drivers/gpu/drm/i2c/tda998x_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/i2c/tda998x_drv.c +2
-1@@ -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);Signature · 6 lines
2.6.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel