Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20221104201238.31628-1-rdunlap@infradead.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Randy Dunlap and committed by
Dmitry Torokhov
6100a19c 0f382cad

+1
+1
drivers/input/joystick/Kconfig
··· 46 46 config JOYSTICK_ADC 47 47 tristate "Simple joystick connected over ADC" 48 48 depends on IIO 49 + select IIO_BUFFER 49 50 select IIO_BUFFER_CB 50 51 help 51 52 Say Y here if you have a simple joystick connected over ADC.