diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2013-01-11 23:08:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-11 16:40:50 -0800 |
commit | 709b2fae7cbadd2582f425aa6c102390d5aa9683 (patch) | |
tree | 1c2291c28299f0c6e933407a8bad9438727fe5a5 /drivers/staging/line6 | |
parent | 7414e8252c115f7630e348cda64e4c4a5b69c511 (diff) | |
download | blackbird-op-linux-709b2fae7cbadd2582f425aa6c102390d5aa9683.tar.gz blackbird-op-linux-709b2fae7cbadd2582f425aa6c102390d5aa9683.zip |
staging: line6: drop ToneportSourceInfo CamelCase name
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>
Diffstat (limited to 'drivers/staging/line6')
-rw-r--r-- | drivers/staging/line6/toneport.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/line6/toneport.c b/drivers/staging/line6/toneport.c index a529dd3d604e..2f44d56700af 100644 --- a/drivers/staging/line6/toneport.c +++ b/drivers/staging/line6/toneport.c @@ -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}, |