diff mbox series

[11/12] iio:accel:bmc150: Mark structure __maybe_unused as only needed with for pm ops.

Message ID 20211128172445.2616166-12-jic23@kernel.org (mailing list archive)
State Accepted
Headers show
Series IIO: clang W=1 warning cleanup. | expand

Commit Message

Jonathan Cameron Nov. 28, 2021, 5:24 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

If CONFIG_PM not set then clang warns this structure is unused.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Stephan Gerhold <stephan@gerhold.net>
---
 drivers/iio/accel/bmc150-accel-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc150-accel-core.c
index b0678c351e82..e6081dd0a880 100644
--- a/drivers/iio/accel/bmc150-accel-core.c
+++ b/drivers/iio/accel/bmc150-accel-core.c
@@ -170,7 +170,7 @@  static const struct {
 				     {1000, 0, 0x0E},
 				     {2000, 0, 0x0F} };
 
-static const struct {
+static __maybe_unused const struct {
 	int bw_bits;
 	int msec;
 } bmc150_accel_sample_upd_time[] = { {0x08, 64},