diff options
author | John Keeping <john@metanate.com> | 2021-10-29 14:41:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 14:40:43 +0100 |
commit | d429976170a5699ef2cc03e3e3abfc06098754cc (patch) | |
tree | 9f93ad7b842e183e65a9e4b5a6b6fdfdc9c37e33 /drivers/usb/gadget/composite.c | |
parent | usb: Remove redundant 'flush_workqueue()' calls (diff) | |
download | linux-dev-d429976170a5699ef2cc03e3e3abfc06098754cc.tar.xz linux-dev-d429976170a5699ef2cc03e3e3abfc06098754cc.zip |
usb: gadget: f_midi: allow resetting index option
Unlike the other integral options supported by the MIDI gadget, index is
a signed integer and defaults to -1, which means "choose any sound card
index". The generic store routine parses input into a u32 which fails
to properly read -1 if an attempt is made to set the value to the
default.
Add a new macro block for signed values to fix this, and use the correct
format string for unsigned values.
Signed-off-by: John Keeping <john@metanate.com>
Link: https://lore.kernel.org/r/20211029134115.351008-1-john@metanate.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
0 files changed, 0 insertions, 0 deletions