diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-09-12 15:22:11 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-14 15:50:15 +0100 |
commit | cbd632ea8ee4ae07d12e85ed07aa5d667a1f47d8 (patch) | |
tree | f307a50d5c97422648f75ae716e6b4cf7a7b521c | |
parent | 6ce898593705f540606a0f61db17c7fa198bd8f7 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 5519f1eda238..b87116e9b413 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"); |