aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-06 05:27:14 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-07 05:15:24 +0100
commitd8c453e6c66ea64caa3d4ab6094859c79a5c9f97 (patch)
treed577c33afb6aab64fad14ec739eeed81a5ace45f
parent4e03e1b2cc2e1a0e7493c054bb458099423db604 (diff)
downloadhardware_replicant_libsamsung-ipc-d8c453e6c66ea64caa3d4ab6094859c79a5c9f97.tar.gz
hardware_replicant_libsamsung-ipc-d8c453e6c66ea64caa3d4ab6094859c79a5c9f97.tar.bz2
hardware_replicant_libsamsung-ipc-d8c453e6c66ea64caa3d4ab6094859c79a5c9f97.zip
devices: galaxys2: cosmetic cleanups
Acked-by: Fil Lupin <fillupin@protonmail.com> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/devices/galaxys2/galaxys2.c30
1 files 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;