Add led option in the xpad kernel driver

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 !

What device are you using?

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

I’m happy to accept a PR for this

Cheers

Sam