Skip to contentSkip to conversation

staging: panel: Use designated initializers

PATCH In review Mariusz Gorski 2 participants 2 messages Oct 29, 2014 – Oct 30, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: panel: Use designated initializers

Fix "warning: missing initializer [-Wmissing-field-initializers]" by using designated struct initializers.

---
 drivers/staging/panel/panel.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/panel/panel.c +6 -6
index 6d1a320..98556ce 100644
@@ -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 */
@@ -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)
Signature · 1 line
2.1.2