Skip to content

Commit 07ef798

Browse files
Colin Ian KingLinus Walleij
authored andcommitted
pinctrl: actions: make s900_functions, s900_padinfo and s900_pads static
s900_functions, s900_padinfo and s900_pads are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: drivers/pinctrl/actions/pinctrl-s900.c:1445:30: warning: symbol 's900_functions' was not declared. Should it be static? drivers/pinctrl/actions/pinctrl-s900.c:1664:20: warning: symbol 's900_padinfo' was not declared. Should it be static? drivers/pinctrl/actions/pinctrl-s900.c:207:31: warning: symbol 's900_pads' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent f83b588 commit 07ef798

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/pinctrl/actions/pinctrl-s900.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
#define NUM_PADS (_PIN(3) + 1)
205205

206206
/* Pad names as specified in datasheet */
207-
const struct pinctrl_pin_desc s900_pads[] = {
207+
static const struct pinctrl_pin_desc s900_pads[] = {
208208
PINCTRL_PIN(ETH_TXD0, "eth_txd0"),
209209
PINCTRL_PIN(ETH_TXD1, "eth_txd1"),
210210
PINCTRL_PIN(ETH_TXEN, "eth_txen"),
@@ -1442,7 +1442,7 @@ static const char * const sirq2_groups[] = {
14421442
.ngroups = ARRAY_SIZE(fname##_groups), \
14431443
}
14441444

1445-
const struct owl_pinmux_func s900_functions[] = {
1445+
static const struct owl_pinmux_func s900_functions[] = {
14461446
[S900_MUX_ERAM] = FUNCTION(eram),
14471447
[S900_MUX_ETH_RMII] = FUNCTION(eth_rmii),
14481448
[S900_MUX_ETH_SMII] = FUNCTION(eth_smii),
@@ -1661,7 +1661,7 @@ static PAD_ST_CONF(I2S_MCLK0, 1, 0, 1);
16611661
}
16621662

16631663
/* Pad info table */
1664-
struct owl_padinfo s900_padinfo[NUM_PADS] = {
1664+
static struct owl_padinfo s900_padinfo[NUM_PADS] = {
16651665
[ETH_TXD0] = PAD_INFO_ST(ETH_TXD0),
16661666
[ETH_TXD1] = PAD_INFO_ST(ETH_TXD1),
16671667
[ETH_TXEN] = PAD_INFO_ST(ETH_TXEN),

0 commit comments

Comments
 (0)