]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: line6: Pass toneport pointer to toneport_has_led()
authorChris Rorvick <chris@rorvick.com>
Sat, 7 Feb 2015 16:43:18 +0000 (10:43 -0600)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Feb 2015 08:06:08 +0000 (09:06 +0100)
commit04bac471c91e0aa08b1d632f3d2587ca9f17fed8
treea62e742f7e13a6ad8df987b55095a2b8e6ffab3d
parent6a32314b792e7f9f2df8222340b63c059bfa0f3c
ALSA: line6: Pass toneport pointer to toneport_has_led()

It is unlikely this function would ever be used in a context without a
pointer to a `struct usb_line6_toneport', so grab the device type from
it rather than having the caller do it.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/toneport.c