Staging: samsung-laptop: change sabi_configs to be in C99 format
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 20:30:00 +0000 (12:30 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 20:30:00 +0000 (12:30 -0800)
This makes the coding style checker a lot happier.

Cc: Ingmar Steen <iksteen@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/samsung-laptop/samsung-laptop.c

index a221947c82ab23cd32d47d4d4c4d467e80ab24e4..798aaebd39723cb498072a75db7858064a2538a1 100644 (file)
@@ -109,95 +109,95 @@ struct sabi_config {
 
 static struct sabi_config sabi_configs[] = {
        {
-               test_string: "SECLINUX",
+               .test_string = "SECLINUX",
 
-               main_function: 0x4c59,
+               .main_function = 0x4c59,
 
-               header_offsets: {
-                       port: 0x00,
-                       re_mem: 0x02,
-                       iface_func: 0x03,
-                       en_mem: 0x04,
-                       data_offset: 0x05,
-                       data_segment: 0x07,
+               .header_offsets = {
+                       .port = 0x00,
+                       .re_mem = 0x02,
+                       .iface_func = 0x03,
+                       .en_mem = 0x04,
+                       .data_offset = 0x05,
+                       .data_segment = 0x07,
                },
 
-               commands: {
-                       get_brightness: 0x00,
-                       set_brightness: 0x01,
+               .commands = {
+                       .get_brightness = 0x00,
+                       .set_brightness = 0x01,
 
-                       get_wireless_button: 0x02,
-                       set_wireless_button: 0x03,
+                       .get_wireless_button = 0x02,
+                       .set_wireless_button = 0x03,
 
-                       get_backlight: 0x04,
-                       set_backlight: 0x05,
+                       .get_backlight = 0x04,
+                       .set_backlight = 0x05,
 
-                       get_recovery_mode: 0x06,
-                       set_recovery_mode: 0x07,
+                       .get_recovery_mode = 0x06,
+                       .set_recovery_mode = 0x07,
 
-                       get_performance_level: 0x08,
-                       set_performance_level: 0x09,
+                       .get_performance_level = 0x08,
+                       .set_performance_level = 0x09,
 
-                       set_linux: 0x0a,
+                       .set_linux = 0x0a,
                },
 
-               performance_levels: {
+               .performance_levels = {
                        {
-                               name: "silent",
-                               value: 0,
+                               .name = "silent",
+                               .value = 0,
                        },
                        {
-                               name: "normal",
-                               value: 1,
+                               .name = "normal",
+                               .value = 1,
                        },
                        { },
                },
        },
        {
-               test_string: "SwSmi@",
+               .test_string = "SwSmi@",
 
-               main_function: 0x5843,
+               .main_function = 0x5843,
 
-               header_offsets: {
-                       port: 0x00,
-                       re_mem: 0x04,
-                       iface_func: 0x02,
-                       en_mem: 0x03,
-                       data_offset: 0x05,
-                       data_segment: 0x07,
+               .header_offsets = {
+                       .port = 0x00,
+                       .re_mem = 0x04,
+                       .iface_func = 0x02,
+                       .en_mem = 0x03,
+                       .data_offset = 0x05,
+                       .data_segment = 0x07,
                },
 
-               commands: {
-                       get_brightness: 0x10,
-                       set_brightness: 0x11,
+               .commands = {
+                       .get_brightness = 0x10,
+                       .set_brightness = 0x11,
 
-                       get_wireless_button: 0x12,
-                       set_wireless_button: 0x13,
+                       .get_wireless_button = 0x12,
+                       .set_wireless_button = 0x13,
 
-                       get_backlight: 0x2d,
-                       set_backlight: 0x2e,
+                       .get_backlight = 0x2d,
+                       .set_backlight = 0x2e,
 
-                       get_recovery_mode: 0xff,
-                       set_recovery_mode: 0xff,
+                       .get_recovery_mode = 0xff,
+                       .set_recovery_mode = 0xff,
 
-                       get_performance_level: 0x31,
-                       set_performance_level: 0x32,
+                       .get_performance_level = 0x31,
+                       .set_performance_level = 0x32,
 
-                       set_linux: 0xff,
+                       .set_linux = 0xff,
                },
 
-               performance_levels: {
+               .performance_levels = {
                        {
-                               name: "normal",
-                               value: 0,
+                               .name = "normal",
+                               .value = 0,
                        },
                        {
-                               name: "silent",
-                               value: 1,
+                               .name = "silent",
+                               .value = 1,
                        },
                        {
-                               name: "overclock",
-                               value: 2,
+                               .name = "overclock",
+                               .value = 2,
                        },
                        { },
                },