[Replicant] [libsamsung-ipc][PATCH 44/48] devices: ipc_devices: switch to Linux code style

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Sun Apr 5 18:21:18 UTC 2020


This contains no functional changes.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 samsung-ipc/devices/ipc_devices.c | 264 +++++++++++++++---------------
 samsung-ipc/devices/ipc_devices.h |  22 ++-
 2 files changed, 141 insertions(+), 145 deletions(-)

diff --git a/samsung-ipc/devices/ipc_devices.c b/samsung-ipc/devices/ipc_devices.c
index ad7d23c..c94d030 100644
--- a/samsung-ipc/devices/ipc_devices.c
+++ b/samsung-ipc/devices/ipc_devices.c
@@ -23,139 +23,137 @@
 #include <ipc_devices.h>
 
 struct ipc_device_desc ipc_devices[] = {
-    {
-        .name = "crespo",
-        .board_name = "herring",
-        .kernel_version = "2.6.35",
-        .fmt_ops = &crespo_fmt_ops,
-        .rfs_ops = &crespo_rfs_ops,
-        .handlers = &crespo_handlers,
-        .gprs_specs = &crespo_gprs_specs_single,
-        .nv_data_specs = &crespo_nv_data_specs,
-    },
-    {
-        .name = "crespo",
-        .board_name = "herring",
-        .kernel_version = "3.0",
-        .fmt_ops = &crespo_fmt_ops,
-        .rfs_ops = &crespo_rfs_ops,
-        .handlers = &crespo_handlers,
-        .gprs_specs = &crespo_gprs_specs,
-        .nv_data_specs = &crespo_nv_data_specs,
-    },
-    {
-        .name = "aries",
-        .board_name = "aries",
-        .kernel_version = NULL,
-        .fmt_ops = &aries_fmt_ops,
-        .rfs_ops = &aries_rfs_ops,
-        .handlers = &aries_handlers,
-        .gprs_specs = &aries_gprs_specs,
-        .nv_data_specs = &aries_nv_data_specs,
-    },
-    {
-        .name = "aries",
-        .board_name = "gt-p1000",
-        .kernel_version = NULL,
-        .fmt_ops = &aries_fmt_ops,
-        .rfs_ops = &aries_rfs_ops,
-        .handlers = &aries_handlers,
-        .gprs_specs = &aries_gprs_specs,
-        .nv_data_specs = &aries_nv_data_specs,
-    },
-    {
-        .name = "galaxys2",
-        .board_name = "smdk4210",
-        .kernel_version = NULL,
-        .fmt_ops = &galaxys2_fmt_ops,
-        .rfs_ops = &galaxys2_rfs_ops,
-        .handlers = &galaxys2_handlers,
-        .gprs_specs = &galaxys2_gprs_specs,
-        .nv_data_specs = &galaxys2_nv_data_specs,
-    },
-    {
-        .name = "galaxys2",
-        .board_name = "i9100",
-        .kernel_version = NULL,
-        .fmt_ops = &galaxys2_fmt_ops,
-        .rfs_ops = &galaxys2_rfs_ops,
-        .handlers = &galaxys2_handlers,
-        .gprs_specs = &galaxys2_gprs_specs,
-        .nv_data_specs = &galaxys2_nv_data_specs,
-    },
-    {
-        .name = "maguro",
-        .board_name = "tuna",
-        .kernel_version = NULL,
-        .fmt_ops = &maguro_fmt_ops,
-        .rfs_ops = &maguro_rfs_ops,
-        .handlers = &maguro_handlers,
-        .gprs_specs = &maguro_gprs_specs,
-        .nv_data_specs = &maguro_nv_data_specs,
-    },
-    {
-        .name = "piranha",
-        .board_name = "espresso10",
-        .kernel_version = NULL,
-        .fmt_ops = &piranha_fmt_ops,
-        .rfs_ops = &piranha_rfs_ops,
-        .handlers = &piranha_handlers,
-        .gprs_specs = &piranha_gprs_specs,
-        .nv_data_specs = &piranha_nv_data_specs,
-    },
-    {
-        .name = "piranha",
-        .board_name = "espresso",
-        .kernel_version = NULL,
-        .fmt_ops = &piranha_fmt_ops,
-        .rfs_ops = &piranha_rfs_ops,
-        .handlers = &piranha_handlers,
-        .gprs_specs = &piranha_gprs_specs,
-        .nv_data_specs = &piranha_nv_data_specs,
-    },
-    {
-        .name = "piranha",
-        .board_name = "omap4 espresso board",
-        .kernel_version = NULL,
-        .fmt_ops = &piranha_fmt_ops,
-        .rfs_ops = &piranha_rfs_ops,
-        .handlers = &piranha_handlers,
-        .gprs_specs = &piranha_gprs_specs,
-        .nv_data_specs = &piranha_nv_data_specs,
-    },
-    {
-        .name = "i9300",
-        .board_name = "smdk4x12",
-        .kernel_version = NULL,
-        .fmt_ops = &i9300_fmt_ops,
-        .rfs_ops = &i9300_rfs_ops,
-        .handlers = &i9300_handlers,
-        .gprs_specs = &i9300_gprs_specs,
-        .nv_data_specs = &i9300_nv_data_specs,
-    },
-    {
-        .name = "n7100",
-        .board_name = "smdk4x12",
-        .kernel_version = NULL,
-        .fmt_ops = &n7100_fmt_ops,
-        .rfs_ops = &n7100_rfs_ops,
-        .handlers = &n7100_handlers,
-        .gprs_specs = &n7100_gprs_specs,
-        .nv_data_specs = &n7100_nv_data_specs,
-    },
-    {
-        .name = "n5100",
-        .board_name = "smdk4x12",
-        .kernel_version = NULL,
-        .fmt_ops = &n5100_fmt_ops,
-        .rfs_ops = &n5100_rfs_ops,
-        .handlers = &n5100_handlers,
-        .gprs_specs = &n5100_gprs_specs,
-        .nv_data_specs = &n5100_nv_data_specs,
-    },
+	{
+		.name = "crespo",
+		.board_name = "herring",
+		.kernel_version = "2.6.35",
+		.fmt_ops = &crespo_fmt_ops,
+		.rfs_ops = &crespo_rfs_ops,
+		.handlers = &crespo_handlers,
+		.gprs_specs = &crespo_gprs_specs_single,
+		.nv_data_specs = &crespo_nv_data_specs,
+	},
+	{
+		.name = "crespo",
+		.board_name = "herring",
+		.kernel_version = "3.0",
+		.fmt_ops = &crespo_fmt_ops,
+		.rfs_ops = &crespo_rfs_ops,
+		.handlers = &crespo_handlers,
+		.gprs_specs = &crespo_gprs_specs,
+		.nv_data_specs = &crespo_nv_data_specs,
+	},
+	{
+		.name = "aries",
+		.board_name = "aries",
+		.kernel_version = NULL,
+		.fmt_ops = &aries_fmt_ops,
+		.rfs_ops = &aries_rfs_ops,
+		.handlers = &aries_handlers,
+		.gprs_specs = &aries_gprs_specs,
+		.nv_data_specs = &aries_nv_data_specs,
+	},
+	{
+		.name = "aries",
+		.board_name = "gt-p1000",
+		.kernel_version = NULL,
+		.fmt_ops = &aries_fmt_ops,
+		.rfs_ops = &aries_rfs_ops,
+		.handlers = &aries_handlers,
+		.gprs_specs = &aries_gprs_specs,
+		.nv_data_specs = &aries_nv_data_specs,
+	},
+	{
+		.name = "galaxys2",
+		.board_name = "smdk4210",
+		.kernel_version = NULL,
+		.fmt_ops = &galaxys2_fmt_ops,
+		.rfs_ops = &galaxys2_rfs_ops,
+		.handlers = &galaxys2_handlers,
+		.gprs_specs = &galaxys2_gprs_specs,
+		.nv_data_specs = &galaxys2_nv_data_specs,
+	},
+	{
+		.name = "galaxys2",
+		.board_name = "i9100",
+		.kernel_version = NULL,
+		.fmt_ops = &galaxys2_fmt_ops,
+		.rfs_ops = &galaxys2_rfs_ops,
+		.handlers = &galaxys2_handlers,
+		.gprs_specs = &galaxys2_gprs_specs,
+		.nv_data_specs = &galaxys2_nv_data_specs,
+	},
+	{
+		.name = "maguro",
+		.board_name = "tuna",
+		.kernel_version = NULL,
+		.fmt_ops = &maguro_fmt_ops,
+		.rfs_ops = &maguro_rfs_ops,
+		.handlers = &maguro_handlers,
+		.gprs_specs = &maguro_gprs_specs,
+		.nv_data_specs = &maguro_nv_data_specs,
+	},
+	{
+		.name = "piranha",
+		.board_name = "espresso10",
+		.kernel_version = NULL,
+		.fmt_ops = &piranha_fmt_ops,
+		.rfs_ops = &piranha_rfs_ops,
+		.handlers = &piranha_handlers,
+		.gprs_specs = &piranha_gprs_specs,
+		.nv_data_specs = &piranha_nv_data_specs,
+	},
+	{
+		.name = "piranha",
+		.board_name = "espresso",
+		.kernel_version = NULL,
+		.fmt_ops = &piranha_fmt_ops,
+		.rfs_ops = &piranha_rfs_ops,
+		.handlers = &piranha_handlers,
+		.gprs_specs = &piranha_gprs_specs,
+		.nv_data_specs = &piranha_nv_data_specs,
+	},
+	{
+		.name = "piranha",
+		.board_name = "omap4 espresso board",
+		.kernel_version = NULL,
+		.fmt_ops = &piranha_fmt_ops,
+		.rfs_ops = &piranha_rfs_ops,
+		.handlers = &piranha_handlers,
+		.gprs_specs = &piranha_gprs_specs,
+		.nv_data_specs = &piranha_nv_data_specs,
+	},
+	{
+		.name = "i9300",
+		.board_name = "smdk4x12",
+		.kernel_version = NULL,
+		.fmt_ops = &i9300_fmt_ops,
+		.rfs_ops = &i9300_rfs_ops,
+		.handlers = &i9300_handlers,
+		.gprs_specs = &i9300_gprs_specs,
+		.nv_data_specs = &i9300_nv_data_specs,
+	},
+	{
+		.name = "n7100",
+		.board_name = "smdk4x12",
+		.kernel_version = NULL,
+		.fmt_ops = &n7100_fmt_ops,
+		.rfs_ops = &n7100_rfs_ops,
+		.handlers = &n7100_handlers,
+		.gprs_specs = &n7100_gprs_specs,
+		.nv_data_specs = &n7100_nv_data_specs,
+	},
+	{
+		.name = "n5100",
+		.board_name = "smdk4x12",
+		.kernel_version = NULL,
+		.fmt_ops = &n5100_fmt_ops,
+		.rfs_ops = &n5100_rfs_ops,
+		.handlers = &n5100_handlers,
+		.gprs_specs = &n5100_gprs_specs,
+		.nv_data_specs = &n5100_nv_data_specs,
+	},
 };
 
 unsigned int ipc_devices_count = sizeof(ipc_devices) /
-    sizeof(struct ipc_device_desc);
-
-// vim:ts=4:sw=4:expandtab
+	sizeof(struct ipc_device_desc);
diff --git a/samsung-ipc/devices/ipc_devices.h b/samsung-ipc/devices/ipc_devices.h
index a7a6098..176607c 100644
--- a/samsung-ipc/devices/ipc_devices.h
+++ b/samsung-ipc/devices/ipc_devices.h
@@ -33,20 +33,18 @@
 #define __IPC_DEVICES_H__
 
 struct ipc_device_desc {
-    char *name;
-    char *board_name;
-    char *kernel_version;
-
-    struct ipc_client_ops *fmt_ops;
-    struct ipc_client_ops *rfs_ops;
-    struct ipc_client_handlers *handlers;
-    struct ipc_client_gprs_specs *gprs_specs;
-    struct ipc_client_nv_data_specs *nv_data_specs;
+	char *name;
+	char *board_name;
+	char *kernel_version;
+
+	struct ipc_client_ops *fmt_ops;
+	struct ipc_client_ops *rfs_ops;
+	struct ipc_client_handlers *handlers;
+	struct ipc_client_gprs_specs *gprs_specs;
+	struct ipc_client_nv_data_specs *nv_data_specs;
 };
 
 extern struct ipc_device_desc ipc_devices[];
 extern unsigned int ipc_devices_count;
 
-#endif
-
-// vim:ts=4:sw=4:expandtab
+#endif /* __IPC_DEVICES_H__ */
-- 
2.26.0



More information about the Replicant mailing list