Skip to content

Commit

Permalink
iio:accel:kxcjk-1013: Mark struct __maybe_unused to avoid warning.
Browse files Browse the repository at this point in the history
This structure is only used in PM ops, so may not be used depending
on build configuration.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20211128172445.2616166-13-jic23@kernel.org
  • Loading branch information
jic23 committed Dec 21, 2021
1 parent f3d29c8 commit 8ebbfb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/accel/kxcjk-1013.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static const char *const kxtf9_samp_freq_avail =
"25 50 100 200 400 800";

/* Refer to section 4 of the specification */
static const struct {
static __maybe_unused const struct {
int odr_bits;
int usec;
} odr_start_up_times[KX_MAX_CHIPS][12] = {
Expand Down

0 comments on commit 8ebbfb9

Please sign in to comment.