History

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.

Jonathan Cameron committed 4 years ago

Commit f3d29c81 parent e8ffca61 file · +1 −1Browse files

Unified · Split

drivers/iio/accel/bmc150-accel-core.c+1−1
@@ -170,7 +170,7 @@ static const struct { · 169 unmodified lines
170 {1000, 0, 0x0E},170 {1000, 0, 0x0E},
171 {2000, 0, 0x0F} };171 {2000, 0, 0x0F} };
172 172
173static const struct {173static __maybe_unused const struct {
174 int bw_bits;174 int bw_bits;
175 int msec;175 int msec;
176} bmc150_accel_sample_upd_time[] = { {0x08, 64},176} bmc150_accel_sample_upd_time[] = { {0x08, 64},

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t