staging: panel: Use designated initializers
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>
This commit is contained in:
parent
553d8ae805
commit
6c3773defb
|
@ -1375,9 +1375,9 @@ static const struct file_operations lcd_fops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct miscdevice lcd_dev = {
|
static struct miscdevice lcd_dev = {
|
||||||
LCD_MINOR,
|
.minor = LCD_MINOR,
|
||||||
"lcd",
|
.name = "lcd",
|
||||||
&lcd_fops
|
.fops = &lcd_fops,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* public function usable from the kernel for any purpose */
|
/* public function usable from the kernel for any purpose */
|
||||||
|
@ -1652,9 +1652,9 @@ static const struct file_operations keypad_fops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct miscdevice keypad_dev = {
|
static struct miscdevice keypad_dev = {
|
||||||
KEYPAD_MINOR,
|
.minor = KEYPAD_MINOR,
|
||||||
"keypad",
|
.name = "keypad",
|
||||||
&keypad_fops
|
.fops = &keypad_fops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void keypad_send_key(const char *string, int max_len)
|
static void keypad_send_key(const char *string, int max_len)
|
||||||
|
|
Loading…
Reference in New Issue