diff options
| author | Arnd Bergmann <[email protected]> | 2016-08-26 17:31:19 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2016-08-29 19:54:55 +0100 |
| commit | 5bc55ef31f710326f541e6a3c726526815dd48e6 (patch) | |
| tree | a00081b080bdc12d27dcc11a8a931cf710f2a402 /tools/perf/scripts/python | |
| parent | 2e1f44d8a7724e889f1a4f211aad13320cb80f1f (diff) | |
iio: magn/ak8974: avoid unused function warning
The ak8974_configure() function is used only from the PM code,
but that can be hidden when CONFIG_PM is disabled:
drivers/iio/magnetometer/ak8974.c:201:12: error: 'ak8974_configure' defined but not used [-Werror=unused-function]
This replaces the #ifdef with a __maybe_unused annotation, which
will work correctly in all configurations and avoid the warning,
as the compiler can now see where ak8974_configure is called from.
Signed-off-by: Arnd Bergmann <[email protected]>
Fixes: 7c94a8b2ee8c ("iio: magn: add a driver for AK8974")
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions