android_kernel_samsung_a7y1.../drivers/iio/light
Krzysztof Wilczynski b622a602ab iio: light: bh1750: Resolve compiler warning and make code more readable
[ Upstream commit f552fde983d378e7339f9ea74a25f918563bf0d3 ]

Separate the declaration of struct bh1750_chip_info from definition
of bh1750_chip_info_tbl[] in a single statement as it makes the code
hard to read, and with the extra newline it makes it look as if the
bh1750_chip_info_tbl[] had no explicit type.

This change also resolves the following compiler warning about the
unusual position of the static keyword that can be seen when building
with warnings enabled (W=1):

drivers/iio/light/bh1750.c:64:1: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

Related to commit 3a11fbb037a1 ("iio: light: add support for ROHM
BH1710/BH1715/BH1721/BH1750/BH1751 ambient light sensors").

Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:20:03 +02:00
..
acpi-als.c
adjd_s311.c
al3320a.c
apds9300.c
apds9960.c
bh1750.c
cm3232.c
cm3323.c
cm32181.c
cm36651.c
gp2ap020a00f.c
hid-sensor-als.c
hid-sensor-prox.c
isl29125.c
jsa1212.c
Kconfig
lm3533-als.c
ltr501.c
Makefile
opt3001.c
pa12203001.c
rpr0521.c
stk3310.c
tcs3414.c
tcs3472.c
tsl2563.c
tsl4531.c
us5182d.c
vcnl4000.c