staging: line6: drop ToneportSourceInfo CamelCase name
authorStefan Hajnoczi <stefanha@gmail.com>
Fri, 11 Jan 2013 22:08:13 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jan 2013 00:40:50 +0000 (16:40 -0800)
Fix the following checkpatch.pl warning:

  WARNING: Avoid CamelCase: <ToneportSourceInfo>
  #5383: FILE: staging/line6/toneport.c:90:
  +struct ToneportSourceInfo {

Since the struct is only used to define the global
toneport_source_info[] table, I have chosen to make the struct
anonymous and part of the table definition.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/toneport.c

index a529dd3d604e7b69a9254fb395dfb8f46c4654dd..2f44d56700af1eabe13625777b3cc3ce8c94cf20 100644 (file)
@@ -87,12 +87,10 @@ static struct line6_pcm_properties toneport_pcm_properties = {
 static int led_red = 0x00;
 static int led_green = 0x26;
 
-struct ToneportSourceInfo {
+static const struct {
        const char *name;
        int code;
-};
-
-static const struct ToneportSourceInfo toneport_source_info[] = {
+} toneport_source_info[] = {
        {"Microphone", 0x0a01},
        {"Line", 0x0801},
        {"Instrument", 0x0b01},