]> git.baikalelectronics.ru Git - kernel.git/commit
iio:accel:bmc150: Mark structure __maybe_unused as only needed with for pm ops.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 28 Nov 2021 17:24:44 +0000 (17:24 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 21 Dec 2021 15:10:09 +0000 (15:10 +0000)
commitca742b06929c44d6f753e1535c3da6ea2f2f302f
tree1da2b19d5953390bf7ddc1e6650727e35e9c7761
parent19817944330c2397baad2c1e67d6e88cdd043537
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 <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-12-jic23@kernel.org
drivers/iio/accel/bmc150-accel-core.c