Skip to content

Commit e9e268e

Browse files
krzklinusw
authored andcommitted
pinctrl: qcom: sdm660-lpass-lpi: Make groups and functions variables static
File-scope 'sdm660_lpi_pinctrl_groups' and 'sdm660_lpi_pinctrl_functions' are not used outside of this unit, so make them static to silence sparse warnings: pinctrl-sdm660-lpass-lpi.c:79:27: warning: symbol 'sdm660_lpi_pinctrl_groups' was not declared. Should it be static? pinctrl-sdm660-lpass-lpi.c:116:27: warning: symbol 'sdm660_lpi_pinctrl_functions' was not declared. Should it be static? Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent c2e1749 commit e9e268e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/qcom/pinctrl-sdm660-lpass-lpi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static const char * const pdm_clk_groups[] = { "gpio18" };
7676
static const char * const pdm_rx_groups[] = { "gpio21", "gpio23", "gpio25" };
7777
static const char * const pdm_sync_groups[] = { "gpio19" };
7878

79-
const struct lpi_pingroup sdm660_lpi_pinctrl_groups[] = {
79+
static const struct lpi_pingroup sdm660_lpi_pinctrl_groups[] = {
8080
LPI_PINGROUP_OFFSET(0, LPI_NO_SLEW, _, _, _, _, 0x0000),
8181
LPI_PINGROUP_OFFSET(1, LPI_NO_SLEW, _, _, _, _, 0x1000),
8282
LPI_PINGROUP_OFFSET(2, LPI_NO_SLEW, _, _, _, _, 0x2000),
@@ -113,7 +113,7 @@ const struct lpi_pingroup sdm660_lpi_pinctrl_groups[] = {
113113
LPI_PINGROUP_OFFSET(31, LPI_NO_SLEW, _, _, _, _, 0xb010),
114114
};
115115

116-
const struct lpi_function sdm660_lpi_pinctrl_functions[] = {
116+
static const struct lpi_function sdm660_lpi_pinctrl_functions[] = {
117117
LPI_FUNCTION(comp_rx),
118118
LPI_FUNCTION(dmic1_clk),
119119
LPI_FUNCTION(dmic1_data),

0 commit comments

Comments
 (0)