diff mbox series

iio: gyro: remove dead config dependencies on INPUT_MPU3050

Message ID 20210817081330.9645-1-lukas.bulwahn@gmail.com (mailing list archive)
State Accepted
Headers show
Series iio: gyro: remove dead config dependencies on INPUT_MPU3050 | expand

Commit Message

Lukas Bulwahn Aug. 17, 2021, 8:13 a.m. UTC
Commit b1fe0cf06f92 ("Input: delete MPU3050 driver") deletes the superseded
MPU3050 driver and its corresponding config INPUT_MPU3050.

The dependencies on the superseding driver in ./drivers/iio/gyro/Kconfig
to ensure that the two drivers are not built into the same kernel is a dead
dependency and not required anymore.

So, remove those config dependencies on INPUT_MPU3050 for MPU3050_I2C.

This issue was detected with ./scripts/checkkconfigsymbols.py.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
---
 drivers/iio/gyro/Kconfig | 1 -
 1 file changed, 1 deletion(-)

Comments

Linus Walleij Aug. 17, 2021, 8:11 p.m. UTC | #1
On Tue, Aug 17, 2021 at 10:13 AM Lukas Bulwahn <lukas.bulwahn@gmail.com> wrote:

> Commit b1fe0cf06f92 ("Input: delete MPU3050 driver") deletes the superseded
> MPU3050 driver and its corresponding config INPUT_MPU3050.
>
> The dependencies on the superseding driver in ./drivers/iio/gyro/Kconfig
> to ensure that the two drivers are not built into the same kernel is a dead
> dependency and not required anymore.
>
> So, remove those config dependencies on INPUT_MPU3050 for MPU3050_I2C.
>
> This issue was detected with ./scripts/checkkconfigsymbols.py.
>
> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>

Oops my leftover.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
Jonathan Cameron Aug. 29, 2021, 3:47 p.m. UTC | #2
On Tue, 17 Aug 2021 22:11:36 +0200
Linus Walleij <linus.walleij@linaro.org> wrote:

> On Tue, Aug 17, 2021 at 10:13 AM Lukas Bulwahn <lukas.bulwahn@gmail.com> wrote:
> 
> > Commit b1fe0cf06f92 ("Input: delete MPU3050 driver") deletes the superseded
> > MPU3050 driver and its corresponding config INPUT_MPU3050.
> >
> > The dependencies on the superseding driver in ./drivers/iio/gyro/Kconfig
> > to ensure that the two drivers are not built into the same kernel is a dead
> > dependency and not required anymore.
> >
> > So, remove those config dependencies on INPUT_MPU3050 for MPU3050_I2C.
> >
> > This issue was detected with ./scripts/checkkconfigsymbols.py.
> >
> > Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>  
> 
> Oops my leftover.
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Yours,
> Linus Walleij

Applied,

Thanks,
diff mbox series

Patch

diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index 20b5ac7ab66a..a672f7d12bbb 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -126,7 +126,6 @@  config MPU3050
 
 config MPU3050_I2C
 	tristate "Invensense MPU3050 devices on I2C"
-	depends on !(INPUT_MPU3050=y || INPUT_MPU3050=m)
 	depends on I2C
 	select MPU3050
 	select REGMAP_I2C