]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: make a couple of config structures static
authorColin Ian King <colin.king@canonical.com>
Mon, 4 Dec 2017 12:04:06 +0000 (12:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:41 +0000 (16:03 +0100)
commit1c2074961d025ce456c8f1f59a494cf7d837161a
tree8c7df7b0244129632e6eb41462b6ee7eb9ae2ab3
parentc707c4dd61f833d2f3bbee00c3ac70fc21a9f5b9
iio: light: make a couple of config structures static

Structures st_uvis25_i2c_regmap_config and st_uvis25_spi_regmap_config are
local to the source and do not need to be in global scope, so make them
both static.

Cleans up sparse warnings:
warning: symbol 'st_uvis25_i2c_regmap_config' was not declared. Should
it be static?
warning: symbol 'st_uvis25_spi_regmap_config' was not declared. Should
it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/st_uvis25_i2c.c
drivers/iio/light/st_uvis25_spi.c