[PATCH 353/961] Staging: samsung-laptop: change sabi_configs to be in C99 format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This makes the coding style checker a lot happier.

Cc: Ingmar Steen <iksteen@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/staging/samsung-laptop/samsung-laptop.c |  108 +++++++++++-----------
 1 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/drivers/staging/samsung-laptop/samsung-laptop.c b/drivers/staging/samsung-laptop/samsung-laptop.c
index a221947..798aaeb 100644
--- a/drivers/staging/samsung-laptop/samsung-laptop.c
+++ b/drivers/staging/samsung-laptop/samsung-laptop.c
@@ -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,
 			},
 			{ },
 		},
-- 
1.7.4.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux