diff options
| author | Lee Jones <[email protected]> | 2020-07-17 17:55:26 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-07-20 09:03:25 +0100 |
| commit | bfec57537f5787135401badefab0a2db240b48d4 (patch) | |
| tree | f62d761e135aa5cd789862b2f399f014092f0580 /tools/perf/scripts/python | |
| parent | fb37b5f8717f822a7841f744ea0fcb1a82edaad8 (diff) | |
iio: gyro: fxas21002c: Move 'fxas21002c_reg_fields' to the only file its used
'fxas21002c_reg_fields' is only used in '*core*', meaning that '*i2c*'
and '*spi*' complain of a defined but not used const variable. Let's
move it into the source file.
Fixes the following W=1 kernel build warning(s):
In file included from drivers/iio/gyro/fxas21002c_i2c.c:14:
drivers/iio/gyro/fxas21002c.h:79:31: warning: ‘fxas21002c_reg_fields’ defined but not used [-Wunused-const-variable=]
79 | static const struct reg_field fxas21002c_reg_fields[] = {
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/iio/gyro/fxas21002c_spi.c:14:
drivers/iio/gyro/fxas21002c.h:79:31: warning: ‘fxas21002c_reg_fields’ defined but not used [-Wunused-const-variable=]
79 | static const struct reg_field fxas21002c_reg_fields[] = {
| ^~~~~~~~~~~~~~~~~~~~~
Cc: Rui Miguel Silva <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions