Messages in this thread | | | Subject | Re: [PATCH] iio: stm: don't always auto-enable I2C and SPI interface drivers | From | Nikita Yushchenko <> | Date | Sun, 2 Jan 2022 13:59:56 +0300 |
| |
02.01.2022 10:02, Linus Walleij wrote: > On Wed, Dec 29, 2021 at 8:29 AM Nikita Yushchenko > <nikita.yoush@cogentembedded.com> wrote: > >> config IIO_ST_ACCEL_I2C_3AXIS >> - tristate >> - depends on IIO_ST_ACCEL_3AXIS >> - depends on IIO_ST_SENSORS_I2C >> + tristate "STMicroelectronics accelerometers 3-Axis I2C Interface" >> + depends on (I2C && IIO_ST_ACCEL_3AXIS) >> + default y if (I2C && IIO_ST_ACCEL_3AXIS) >> + select IIO_ST_SENSORS_I2C > > This thing that a Kconfig symbol is made to depend on itself just > boggles my head but it wouldn't surprise me if KConfig is this weird :( > > I CCed Arnd who knows KConfig a bit better than anyone I know.
Sorry but I don't see a dependency on itself here.
"IIO_ST_ACCEL_I2C_3AXIS" depends on "IIO_ST_ACCEL_3AXIS"
Name with I2C embedded not at end could be a bit wired, but in this patch I don't change any names to keep things 100% backward-compatible.
Nikita
| |