summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-04-06 22:48:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 10:24:47 +0200
commit788fde03102781745190153642b7ba6e7aeb3649 (patch)
treec0d60a04250717c419bf0de3c9663ed231a07c63 /scripts/gdb/linux/utils.py
parent3d0be94f62fdee2278fec653bf6b952136a51516 (diff)
staging: rtl8188eu: use actual request type as parameter
At the moment, usbctrl_vendorreq's requesttype parameter must be set to 1 for reading and 0 for writing. It's then converted to the actual bmRequestType for the USB control request. We can simplify the code and avoid this conversion if the caller passes the actual bmRequestType. We already have defines for the read and write request types. Move them to usb_ops_linux.c, they're used only inside this file. Replace the numeric values with USB constants to make their meaning clearer. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210406204829.18130-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions