Skip to content

Commit 9607004

Browse files
kloenkjannau
authored andcommitted
rust: iio: common: Change cfg guard of aop_sensors module
Change the cfg guard of the `aop_sensors` module to the direct config symbols `CONFIG_IIO_AOP_SENSORS_LAS` and `CONFIG_IIO_AOP_SENSORS_ALS` without checking if they are set as either module or yes. This fixes a build error when `CONFIG_IIO_AOP_SENSORS_LAS` is set to module and `CONFIG_IIO_AOP_SENSORS_ALS` is disabled. Signed-off-by: Fiona Behrens <me@kloenk.dev>
1 parent a21d08e commit 9607004

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

rust/kernel/iio/common/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,5 @@
22

33
//! IIO common modules
44
5-
#[cfg(any(
6-
CONFIG_IIO_AOP_SENSOR_LAS = "y",
7-
CONFIG_IIO_AOP_SENSOR_ALS = "m",
8-
CONFIG_IIO_AOP_SENSOR_LAS = "y",
9-
CONFIG_IIO_AOP_SENSOR_ALS = "m",
10-
))]
5+
#[cfg(any(CONFIG_IIO_AOP_SENSOR_LAS, CONFIG_IIO_AOP_SENSOR_ALS,))]
116
pub mod aop_sensors;

0 commit comments

Comments
 (0)