Commit 709b2fae authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Greg Kroah-Hartman

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: default avatarStefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7414e825
...@@ -87,12 +87,10 @@ static struct line6_pcm_properties toneport_pcm_properties = { ...@@ -87,12 +87,10 @@ static struct line6_pcm_properties toneport_pcm_properties = {
static int led_red = 0x00; static int led_red = 0x00;
static int led_green = 0x26; static int led_green = 0x26;
struct ToneportSourceInfo { static const struct {
const char *name; const char *name;
int code; int code;
}; } toneport_source_info[] = {
static const struct ToneportSourceInfo toneport_source_info[] = {
{"Microphone", 0x0a01}, {"Microphone", 0x0a01},
{"Line", 0x0801}, {"Line", 0x0801},
{"Instrument", 0x0b01}, {"Instrument", 0x0b01},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment