Skip to contentSkip to conversation

Input: joystick - fix Kconfig warning for JOYSTICK_ADC

PATCH Applied Randy Dunlap 2 participants 2 messages Nov 4, 2022 – Nov 7, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: joystick - fix Kconfig warning for JOYSTICK_ADC

Fix a Kconfig warning for JOYSTICK_ADC by also selecting IIO_BUFFER.

WARNING: unmet direct dependencies detected for IIO_BUFFER_CB
Depends on [n]: IIO [=y] && IIO_BUFFER [=n]
Selected by [y]:
- JOYSTICK_ADC [=y] && INPUT [=y] && INPUT_JOYSTICK [=y] && IIO [=y]

Fixes 2c2b364fddd5 ("Input: joystick - add ADC attached joystick driver.")
Cc Artur Rojek <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>
---
 drivers/input/joystick/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/Kconfig +1 -0
diff -- a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig
@@ -46,6 +46,7 @@ config JOYSTICK_A3D
 config JOYSTICK_ADC
 	tristate "Simple joystick connected over ADC"
 	depends on IIO
+	select IIO_BUFFER
 	select IIO_BUFFER_CB
 	help
 	  Say Y here if you have a simple joystick connected over ADC.
maintainer Applied
#1 lore raw
Quoted 8 lines · Randy Dunlap

Fix a Kconfig warning for JOYSTICK_ADC by also selecting IIO_BUFFER.

WARNING: unmet direct dependencies detected for IIO_BUFFER_CB
Depends on [n]: IIO [=y] && IIO_BUFFER [=n]
Selected by [y]:
- JOYSTICK_ADC [=y] && INPUT [=y] && INPUT_JOYSTICK [=y] && IIO [=y]

Quoted 8 lines
Fixes 2c2b364fddd5 ("Input: joystick - add ADC attached joystick driver.")
Cc Artur Rojek <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>

Applied, thank you.

Signature · 1 line
Dmitry