From: Wei Yongjun Date: Thu, 10 Jan 2019 14:07:42 +0000 (+0000) Subject: gpio: pca953x: Make symbol 'pca953x_i2c_regmap' static X-Git-Tag: v5.0-rc3~42^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d04e779fb1dbeedf8a60b66d0d0048be4e65d366;p=thirdparty%2Fkernel%2Flinux.git gpio: pca953x: Make symbol 'pca953x_i2c_regmap' static Fixes the following sparse warning: drivers/gpio/gpio-pca953x.c:292:28: warning: symbol 'pca953x_i2c_regmap' was not declared. Should it be static? Fixes: 49427232764d ("gpio: pca953x: Perform basic regmap conversion") Signed-off-by: Wei Yongjun Reviewed-by: Marek Vasut Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 83617fdc661d2..0dc96419efe36 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -289,7 +289,7 @@ static bool pca953x_volatile_register(struct device *dev, unsigned int reg) return pca953x_check_register(chip, reg, bank); } -const struct regmap_config pca953x_i2c_regmap = { +static const struct regmap_config pca953x_i2c_regmap = { .reg_bits = 8, .val_bits = 8,