summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/template/usb_template_audio.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-01-30 16:05:54 +0000
committerhselasky <hselasky@FreeBSD.org>2013-01-30 16:05:54 +0000
commitb7433e15c3ef10d95759121d1e726ea9864da8a3 (patch)
treef33c6466c2ca5f46906b6d9c0cfb88e7195235d6 /sys/dev/usb/template/usb_template_audio.c
parent07f6ed056f5894a455fd52e2158b58144ecdca68 (diff)
downloadFreeBSD-src-b7433e15c3ef10d95759121d1e726ea9864da8a3.zip
FreeBSD-src-b7433e15c3ef10d95759121d1e726ea9864da8a3.tar.gz
Use string literals in string descriptors for marginally
better readability. Submitted by: Christoph Mallon
Diffstat (limited to 'sys/dev/usb/template/usb_template_audio.c')
-rw-r--r--sys/dev/usb/template/usb_template_audio.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/dev/usb/template/usb_template_audio.c b/sys/dev/usb/template/usb_template_audio.c
index f40c601..7c7cebe 100644
--- a/sys/dev/usb/template/usb_template_audio.c
+++ b/sys/dev/usb/template/usb_template_audio.c
@@ -68,21 +68,16 @@ enum {
};
#define STRING_AUDIO_PRODUCT \
- 'A', 0, 'u', 0, 'd', 0, 'i', 0, 'o', 0, ' ', 0, \
- 'T', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, \
- 'D', 0, 'e', 0, 'v', 0, 'i', 0, 'c', 0, 'e', 0,
+ "A\0u\0d\0i\0o\0 \0T\0e\0s\0t\0 \0D\0e\0v\0i\0c\0e"
#define STRING_AUDIO_MIXER \
- 'M', 0, 'i', 0, 'x', 0, 'e', 0, 'r', 0, ' ', 0, \
- 'i', 0, 'n', 0, 't', 0, 'e', 0, 'r', 0, 'f', 0, 'a', 0, 'c', 0, 'e', 0,
+ "M\0i\0x\0e\0r\0 \0i\0n\0t\0e\0r\0f\0a\0c\0e"
#define STRING_AUDIO_RECORD \
- 'R', 0, 'e', 0, 'c', 0, 'o', 0, 'r', 0, 'd', 0, ' ', 0, \
- 'i', 0, 'n', 0, 't', 0, 'e', 0, 'r', 0, 'f', 0, 'a', 0, 'c', 0, 'e', 0,
+ "R\0e\0c\0o\0r\0d\0 \0i\0n\0t\0e\0r\0f\0a\0c\0e"
#define STRING_AUDIO_PLAYBACK \
- 'P', 0, 'l', 0, 'a', 0, 'y', 0, 'b', 0, 'a', 0, 'c', 0, 'k', 0, ' ', 0, \
- 'i', 0, 'n', 0, 't', 0, 'e', 0, 'r', 0, 'f', 0, 'a', 0, 'c', 0, 'e', 0,
+ "P\0l\0a\0y\0b\0a\0c\0k\0 \0i\0n\0t\0e\0r\0f\0a\0c\0e"
/* make the real string descriptors */
OpenPOWER on IntegriCloud