diff options
| author | Krzysztof Wilczynski <[email protected]> | 2019-09-13 22:24:13 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-09-15 10:47:02 +0100 |
| commit | f552fde983d378e7339f9ea74a25f918563bf0d3 (patch) | |
| tree | 6897308d345a48cb84f6b0b1fa5065201383f98a /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | a515d64885054603fd33a8b31d380b4fbad0f6eb (diff) | |
iio: light: bh1750: Resolve compiler warning and make code more readable
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 <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions