Skip to content

Commit 50851f5

Browse files
JasonYanHwbroonie
authored andcommitted
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>
1 parent 505623a commit 50851f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-bcm2835.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#define DRV_NAME "spi-bcm2835"
7676

7777
/* define polling limits */
78-
unsigned int polling_limit_us = 30;
78+
static unsigned int polling_limit_us = 30;
7979
module_param(polling_limit_us, uint, 0664);
8080
MODULE_PARM_DESC(polling_limit_us,
8181
"time in us to run a transfer in polling mode\n");

0 commit comments

Comments
 (0)