Add led option in the xpad kernel driver

#1

Hello,

I’m using an xbox360 pad on osmc, but when i synchronise it, the four led keep blinking.

It’s because JOYSTICK_XPAD_LEDS is not set, is it possible to add it by default if there is no side effect with other controler ? (so we won’t have to rebuild the kernel at each upgrade to use it ^^’ )

Best regards !

#2

What device are you using?

#3

Hello,

I’m on raspberry pi 3 with kernel rbp2-image-4.19.55-3-osmc

osmc@rpihtpc:~$ cat /etc/debian_version
9.9
osmc@rpihtpc:~$ cat /boot/config-4.19.55-3-osmc |grep XPAD
CONFIG_JOYSTICK_XPAD=m
CONFIG_JOYSTICK_XPAD_FF=y
# CONFIG_JOYSTICK_XPAD_LEDS is not set
# CONFIG_JOYSTICK_PSXPAD_SPI is not set
#4

I’m happy to accept a PR for this

Cheers

Sam