Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@cyberdimension.org>
---
 samsung-ipc/devices/galaxys2/galaxys2.c | 30 +++++++++++++++----------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/samsung-ipc/devices/galaxys2/galaxys2.c 
b/samsung-ipc/devices/galaxys2/galaxys2.c
index 8b96893..f82ed12 100644
--- a/samsung-ipc/devices/galaxys2/galaxys2.c
+++ b/samsung-ipc/devices/galaxys2/galaxys2.c
@@ -52,14 +52,16 @@ int galaxys2_boot(struct ipc_client *client)
     }
     ipc_client_log(client, "Opened modem image device");
 
-    modem_image_data = mmap(0, GALAXYS2_MODEM_IMAGE_SIZE, PROT_READ, 
MAP_SHARED, modem_image_fd, 0);
+    modem_image_data = mmap(0, GALAXYS2_MODEM_IMAGE_SIZE, PROT_READ,
+                            MAP_SHARED, modem_image_fd, 0);
     if (modem_image_data == NULL || modem_image_data == (void *) 0xffffffff) {
             ipc_client_log(client, "Mapping modem image data to memory 
failed");
             goto error;
     }
     ipc_client_log(client, "Mapped modem image data to memory");
 
-    modem_boot_fd = open(XMM626_SEC_MODEM_BOOT0_DEVICE, O_RDWR | O_NOCTTY | 
O_NONBLOCK);
+    modem_boot_fd = open(XMM626_SEC_MODEM_BOOT0_DEVICE,
+                         O_RDWR | O_NOCTTY | O_NONBLOCK);
     if (modem_boot_fd < 0) {
         ipc_client_log(client, "Opening modem boot device failed");
         goto error;
@@ -104,7 +106,8 @@ int galaxys2_boot(struct ipc_client *client)
 
     p = (unsigned char *) modem_image_data + GALAXYS2_PSI_OFFSET;
 
-    rc = xmm626_hsic_psi_send(client, modem_boot_fd, (void *) p, 
GALAXYS2_PSI_SIZE);
+    rc = xmm626_hsic_psi_send(client, modem_boot_fd, (void *) p,
+                              GALAXYS2_PSI_SIZE);
     if (rc < 0) {
         ipc_client_log(client, "Sending XMM626 HSIC PSI failed");
         goto error;
@@ -113,7 +116,8 @@ int galaxys2_boot(struct ipc_client *client)
 
     p = (unsigned char *) modem_image_data + GALAXYS2_EBL_OFFSET;
 
-    rc = xmm626_hsic_ebl_send(client, modem_boot_fd, (void *) p, 
GALAXYS2_EBL_SIZE);
+    rc = xmm626_hsic_ebl_send(client, modem_boot_fd, (void *) p,
+                              GALAXYS2_EBL_SIZE);
     if (rc < 0) {
         ipc_client_log(client, "Sending XMM626 HSIC EBL failed");
         goto error;
@@ -129,7 +133,8 @@ int galaxys2_boot(struct ipc_client *client)
 
     p = (unsigned char *) modem_image_data + GALAXYS2_SEC_START_OFFSET;
 
-    rc = xmm626_hsic_sec_start_send(client, modem_boot_fd, (void *) p, 
GALAXYS2_SEC_START_SIZE);
+    rc = xmm626_hsic_sec_start_send(client, modem_boot_fd, (void *) p,
+                                    GALAXYS2_SEC_START_SIZE);
     if (rc < 0) {
         ipc_client_log(client, "Sending XMM626 HSIC SEC start failed");
         goto error;
@@ -138,7 +143,8 @@ int galaxys2_boot(struct ipc_client *client)
 
     p = (unsigned char *) modem_image_data + GALAXYS2_FIRMWARE_OFFSET;
 
-    rc = xmm626_hsic_firmware_send(client, modem_boot_fd, (void *) p, 
GALAXYS2_FIRMWARE_SIZE);
+    rc = xmm626_hsic_firmware_send(client, modem_boot_fd, (void *) p,
+                                   GALAXYS2_FIRMWARE_SIZE);
     if (rc < 0) {
         ipc_client_log(client, "Sending XMM626 HSIC firmware failed");
         goto error;
@@ -330,20 +336,20 @@ int galaxys2_power_off(__attribute__((unused)) void *data)
 }
 
 int galaxys2_gprs_activate(__attribute__((unused)) void *data,
-                          __attribute__((unused)) unsigned int cid)
+                           __attribute__((unused)) unsigned int cid)
 {
     return 0;
 }
 
 int galaxys2_gprs_deactivate(__attribute__((unused)) void *data,
-                            __attribute__((unused)) unsigned int cid)
+                             __attribute__((unused)) unsigned int cid)
 {
     return 0;
 }
 
 int galaxys2_data_create(void **transport_data,
-                        __attribute__((unused)) void **power_data,
-                        __attribute__((unused)) void **gprs_data)
+                         __attribute__((unused)) void **power_data,
+                         __attribute__((unused)) void **gprs_data)
 {
     if (transport_data == NULL)
         return -1;
@@ -354,8 +360,8 @@ int galaxys2_data_create(void **transport_data,
 }
 
 int galaxys2_data_destroy(void *transport_data,
-                         __attribute__((unused)) void *power_data,
-                         __attribute__((unused)) void *gprs_data)
+                          __attribute__((unused)) void *power_data,
+                          __attribute__((unused)) void *gprs_data)
 {
     if (transport_data == NULL)
         return -1;
-- 
2.25.0

_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to