aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@skynet.be>2009-06-21 17:21:55 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 09:46:20 -0400
commitb95cd7ec3e93bae199e820bd65b21b23e4538acc (patch)
treec1a99b3dfd9b52bd0194d3aff6231867887d990f /include/linux/usb
parent512ad27d8667158747de2e8da8a23e8f50e91856 (diff)
USB audio gadget: Un-inline generic_[gs]et_cmd
Those functions are used only used to fill the set/get members of usb_audio_control. It doesn't make much sense to inline them. Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/audio.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h
index c3edfcb72c34..7b33c493917f 100644
--- a/include/linux/usb/audio.h
+++ b/include/linux/usb/audio.h
@@ -285,18 +285,6 @@ struct usb_audio_control {
285 int (*get)(struct usb_audio_control *con, u8 cmd); 285 int (*get)(struct usb_audio_control *con, u8 cmd);
286}; 286};
287 287
288static inline int generic_set_cmd(struct usb_audio_control *con, u8 cmd, int value)
289{
290 con->data[cmd] = value;
291
292 return 0;
293}
294
295static inline int generic_get_cmd(struct usb_audio_control *con, u8 cmd)
296{
297 return con->data[cmd];
298}
299
300struct usb_audio_control_selector { 288struct usb_audio_control_selector {
301 struct list_head list; 289 struct list_head list;
302 struct list_head control; 290 struct list_head control;