aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/audio.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-07-29 07:23:25 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 09:46:31 -0400
commitc35013087aa9b10e4674b53b7c8f7966de83c194 (patch)
tree6cf8f305ded6169b11e8bc1d4234d8bd47199f99 /include/linux/usb/audio.h
parent2f2cac3c1af2bfc72c55b0054b6b95309882e27b (diff)
USB: audio: guard kernel-only code with __KERNEL__
include/linux/usb/audio.h is exported to userspace, so part of this file that is for internal kernel usage need to be guarded with ifdef __KERNEL__. This way make headers_install will stript it out. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb/audio.h')
-rw-r--r--include/linux/usb/audio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h
index 7b33c493917f..eaf9dffe0a01 100644
--- a/include/linux/usb/audio.h
+++ b/include/linux/usb/audio.h
@@ -276,6 +276,8 @@ struct uac_iso_endpoint_descriptor {
276#define UAC_FU_BASS_BOOST (1 << (UAC_BASS_BOOST_CONTROL - 1)) 276#define UAC_FU_BASS_BOOST (1 << (UAC_BASS_BOOST_CONTROL - 1))
277#define UAC_FU_LOUDNESS (1 << (UAC_LOUDNESS_CONTROL - 1)) 277#define UAC_FU_LOUDNESS (1 << (UAC_LOUDNESS_CONTROL - 1))
278 278
279#ifdef __KERNEL__
280
279struct usb_audio_control { 281struct usb_audio_control {
280 struct list_head list; 282 struct list_head list;
281 const char *name; 283 const char *name;
@@ -294,4 +296,6 @@ struct usb_audio_control_selector {
294 struct usb_descriptor_header *desc; 296 struct usb_descriptor_header *desc;
295}; 297};
296 298
299#endif /* __KERNEL__ */
300
297#endif /* __LINUX_USB_AUDIO_H */ 301#endif /* __LINUX_USB_AUDIO_H */