From: David Lechner <dlechner@baylibre.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Michael Hennerich" <michael.hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
"David Lechner" <dlechner@baylibre.com>,
"kernel test robot" <lkp@intel.com>
Subject: [PATCH 1/2] iio: adc: ad7380: make ad7380_regmap_config static
Date: Mon, 29 Jan 2024 11:41:49 -0600 [thread overview]
Message-ID: <20240129174150.655088-2-dlechner@baylibre.com> (raw)
In-Reply-To: <20240129174150.655088-1-dlechner@baylibre.com>
ad7380_regmap_config is not used outside of ad7380.c, so make it static.
Fixes sparse warning:
drivers/iio/adc/ad7380.c:205:28: sparse: sparse: symbol
'ad7380_regmap_config' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401280629.5kknB57C-lkp@intel.com/
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
drivers/iio/adc/ad7380.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c
index 80712aaa9548..44b8b18ab213 100644
--- a/drivers/iio/adc/ad7380.c
+++ b/drivers/iio/adc/ad7380.c
@@ -202,7 +202,7 @@ static int ad7380_regmap_reg_read(void *context, unsigned int reg,
return 0;
}
-const struct regmap_config ad7380_regmap_config = {
+static const struct regmap_config ad7380_regmap_config = {
.reg_bits = 3,
.val_bits = 12,
.reg_read = ad7380_regmap_reg_read,
--
2.43.0
next prev parent reply other threads:[~2024-01-29 17:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 17:41 [PATCH 0/2] iio: adc: ad7380: fix sparse warnings David Lechner
2024-01-29 17:41 ` David Lechner [this message]
2024-01-29 20:00 ` [PATCH 1/2] iio: adc: ad7380: make ad7380_regmap_config static Jonathan Cameron
2024-01-29 17:41 ` [PATCH 2/2] iio: adc: ad7380: don't use bool in FIELD_PREP David Lechner
2024-01-29 19:31 ` David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240129174150.655088-2-dlechner@baylibre.com \
--to=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=michael.hennerich@analog.com \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox