Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1642665

[PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver static

From Wei Yongjun <weiyj.lk@gmail.com>
Newsgroups linux.kernel
Subject [PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver static
Date 2017-05-16 18:30 +0200
Message-ID <tHNwe-7SQ-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Wei Yongjun <weiyongjun1@huawei.com>

Fixes the following sparse warnings:

sound/soc/codecs/rt5665.c:4928:19: warning:
symbol 'rt5665_i2c_driver' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 sound/soc/codecs/rt5665.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 26bf157..bb440bd 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4925,7 +4925,7 @@ static struct acpi_device_id rt5665_acpi_match[] = {
 MODULE_DEVICE_TABLE(acpi, rt5665_acpi_match);
 #endif
 
-struct i2c_driver rt5665_i2c_driver = {
+static struct i2c_driver rt5665_i2c_driver = {
 	.driver = {
 		.name = "rt5665",
 		.of_match_table = of_match_ptr(rt5665_of_match),

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver static Wei Yongjun <weiyj.lk@gmail.com> - 2017-05-16 18:30 +0200
  Re: [PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver  static Mark Brown <broonie@kernel.org> - 2017-05-17 11:40 +0200
  Applied "ASoC: rt5665: make local symbol rt5665_i2c_driver static" to the asoc tree Mark Brown <broonie@kernel.org> - 2017-05-17 12:00 +0200

csiph-web