summaryrefslogtreecommitdiffstats
path: root/sound/usb/quirks.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-25 11:33:19 +0100
committerTakashi Iwai <tiwai@suse.de>2020-03-26 10:47:00 +0100
commitd8695bc5b1fe88305396b1f788d3b5f218e28a30 (patch)
tree0f756e8450b6d5c147a59d924585cb1fd95d2ec5 /sound/usb/quirks.h
parentc208a5335036a332c0248b0e16fca57332b3f1d1 (diff)
downloadlinux-d8695bc5b1fe88305396b1f788d3b5f218e28a30.tar.bz2
ALSA: usb-audio: Rewrite registration quirk handling
A slight refactoring of the registration quirk code. Now it uses the table lookup for easy additions in future. Also the return type was changed to bool, and got a few more comments. Link: https://lore.kernel.org/r/20200325103322.2508-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/quirks.h')
-rw-r--r--sound/usb/quirks.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/quirks.h b/sound/usb/quirks.h
index 3afc01eabc7e..c76cf24a640a 100644
--- a/sound/usb/quirks.h
+++ b/sound/usb/quirks.h
@@ -51,7 +51,6 @@ void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
struct audioformat *fp,
int stream);
-int snd_usb_registration_quirk(struct snd_usb_audio *chip,
- int iface);
+bool snd_usb_registration_quirk(struct snd_usb_audio *chip, int iface);
#endif /* __USBAUDIO_QUIRKS_H */