Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 324549fa authored by Quentin Perret's avatar Quentin Perret
Browse files

ANDROID: usb: gadget: Fix dependency for f_accessory



The Android Accessory USB gadget functions use core HID functions. As
such, compiling with CONFIG_HID=m and CONFIG_USB_GADGET=y fails to link:

    drivers/usb/gadget/function/f_accessory.o: In function `acc_complete_send_hid_event':
    f_accessory.c:(.text+0xd54): undefined reference to `hid_report_raw_event'
    drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_work':
    f_accessory.c:(.text+0x2a98): undefined reference to `hid_destroy_device'
    f_accessory.c:(.text+0x2ad4): undefined reference to `hid_allocate_device'
    f_accessory.c:(.text+0x2b64): undefined reference to `hid_add_device'
    f_accessory.c:(.text+0x2d04): undefined reference to `hid_destroy_device'
    drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_parse':
    f_accessory.c:(.text+0x2e24): undefined reference to `hid_parse_report'
    drivers/usb/gadget/function/f_accessory.o: In function `acc_function_bind_configfs':
    f_accessory.c:(.text+0x2f8c): undefined reference to `__hid_register_driver'
    drivers/usb/gadget/function/f_accessory.o: In function `acc_function_unbind':
    f_accessory.c:(.text+0x3bc8): undefined reference to `hid_unregister_driver'
    drivers/usb/gadget/function/f_accessory.o: In function `acc_hid_probe':
    f_accessory.c:(.text+0x3ef4): undefined reference to `hid_open_report'
    f_accessory.c:(.text+0x3f18): undefined reference to `hid_hw_start'

Fix this by making the dependency on HID explicit.

Bug: 140224784
Fixes: f9247cea ("ANDROID: usb: gadget: Accessory:Migrate to
USB_FUNCTION API")
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
Change-Id: Ibd8640d7766cc7802d8275bfe3adfa007f3318fe
parent f361aa09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment