From: Stefan Hajnoczi Date: Fri, 11 Jan 2013 22:08:13 +0000 (+0100) Subject: staging: line6: drop ToneportSourceInfo CamelCase name X-Git-Tag: upstream/snapshot3+hdmi~5696^2~483 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=709b2fae7cbadd2582f425aa6c102390d5aa9683;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: line6: drop ToneportSourceInfo CamelCase name Fix the following checkpatch.pl warning: WARNING: Avoid CamelCase: #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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/toneport.c b/drivers/staging/line6/toneport.c index a529dd3..2f44d56 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},