diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-05 11:23:56 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-10-09 23:02:36 +0200 |
commit | 1356d86ff149c2fb4f81d906933158d948baf8e7 (patch) | |
tree | c1dead560bfe3c060af78281bfb89996fb4f5e70 | |
parent | 161ef8b34dd556b1b635de8217f84f6d8ea94990 (diff) |
pinctrl: sx150x: make struct sx150x_regmap_config static
The structure sx150x_regmap_config is local to the source and does not
need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'sx150x_regmap_config' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-sx150x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index 7450f5118445..c5ab8cef942d 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -1087,7 +1087,7 @@ static bool sx150x_reg_volatile(struct device *dev, unsigned int reg) return reg == pctl->data->reg_irq_src || reg == pctl->data->reg_data; } -const struct regmap_config sx150x_regmap_config = { +static const struct regmap_config sx150x_regmap_config = { .reg_bits = 8, .val_bits = 32, |