Skip to content

Commit

Permalink
staging: panel: Use designated initializers
Browse files Browse the repository at this point in the history
Fix "warning: missing initializer [-Wmissing-field-initializers]"
by using designated struct initializers.

Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mariusz Gorski authored and Greg Kroah-Hartman committed Oct 29, 2014
1 parent 553d8ae commit 6c3773d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1375,9 +1375,9 @@ static const struct file_operations lcd_fops = {
};

static struct miscdevice lcd_dev = {
LCD_MINOR,
"lcd",
&lcd_fops
.minor = LCD_MINOR,
.name = "lcd",
.fops = &lcd_fops,
};

/* public function usable from the kernel for any purpose */
Expand Down Expand Up @@ -1652,9 +1652,9 @@ static const struct file_operations keypad_fops = {
};

static struct miscdevice keypad_dev = {
KEYPAD_MINOR,
"keypad",
&keypad_fops
.minor = KEYPAD_MINOR,
.name = "keypad",
.fops = &keypad_fops,
};

static void keypad_send_key(const char *string, int max_len)
Expand Down

0 comments on commit 6c3773d

Please sign in to comment.