From: Jonathan Cameron Date: Sun, 28 Nov 2021 17:24:44 +0000 (+0000) Subject: iio:accel:bmc150: Mark structure __maybe_unused as only needed with for pm ops. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f3d29c85e6eb5d83d29e2c2bbdf9c824df4cc442;p=linux.git iio:accel:bmc150: Mark structure __maybe_unused as only needed with for pm ops. If CONFIG_PM not set then clang warns this structure is unused. Signed-off-by: Jonathan Cameron Cc: Stephan Gerhold Reviewed-by: Nathan Chancellor Link: https://lore.kernel.org/r/20211128172445.2616166-12-jic23@kernel.org --- diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc150-accel-core.c index b0678c351e829..e6081dd0a8800 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},