summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-09-12 15:22:11 +0800
committerMark Brown <broonie@kernel.org>2020-09-15 16:48:38 +0100
commit50851f5033a34fb9f2ecefa57fc9efd862634416 (patch)
tree9f76de6d4ad20f1495c78a30945f435b03cd9f2a
parent505623a2be48b36de533951ced130876a76a2d55 (diff)
downloadlinux-50851f5033a34fb9f2ecefa57fc9efd862634416.tar.gz
linux-50851f5033a34fb9f2ecefa57fc9efd862634416.tar.bz2
linux-50851f5033a34fb9f2ecefa57fc9efd862634416.zip
spi: bcm2835: Make polling_limit_us static
This eliminates the following sparse warning: drivers/spi/spi-bcm2835.c:78:14: warning: symbol 'polling_limit_us' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200912072211.602735-1-yanaijie@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-bcm2835.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c
index c45d76c848c8..41986ac0fbfb 100644
--- a/drivers/spi/spi-bcm2835.c
+++ b/drivers/spi/spi-bcm2835.c
@@ -75,7 +75,7 @@
#define DRV_NAME "spi-bcm2835"
/* define polling limits */
-unsigned int polling_limit_us = 30;
+static unsigned int polling_limit_us = 30;
module_param(polling_limit_us, uint, 0664);
MODULE_PARM_DESC(polling_limit_us,
"time in us to run a transfer in polling mode\n");