• Jiri Kosina's avatar
    HID: fix hid-ff drivers so that devices work even without ff support · 0f6f4319
    Jiri Kosina authored
    Currently, the hid-*ff force feedback drivers, which claim the blacklisted
    device on a HID bus, are only compiled in if the user selects force feedback
    support.
    
    However we want the device to be supported even when the kernel is configured
    without force feedback.
    
    This patch fixes the drivers in a way that they get compiled even if force
    feedback is turned off; all the force feedback support code is compiled out in
    such case, and the driver works as a usual driver on HID bus, claiming and
    initializing the device, making it operational without FF effects.
    Reported-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    0f6f4319
hid-zpff.c 3.97 KB