aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-09-29 17:39:01 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-09-29 17:41:51 +0200
commitbf45ec1034ad56d7b732deb346dd8dd75c5693f0 (patch)
treedfda844ab84c257a4ae86d77abf3092d8905fa3a
parent2b1f2cc914bcb7439efc489d8a858dace16ae95e (diff)
downloadhardware_replicant_libsamsung-ipc-patches-todo/guix.scm-static.tar.gz
hardware_replicant_libsamsung-ipc-patches-todo/guix.scm-static.tar.bz2
hardware_replicant_libsamsung-ipc-patches-todo/guix.scm-static.zip
tools: ipc-modem: modem_exec_power_normal: don't hardcode command valuepatches-todo/guix.scm-static
This makes the code easier to read. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--tools/ipc-modem/ipc-modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipc-modem/ipc-modem.c b/tools/ipc-modem/ipc-modem.c
index 3933491..c70bcc1 100644
--- a/tools/ipc-modem/ipc-modem.c
+++ b/tools/ipc-modem/ipc-modem.c
@@ -135,7 +135,7 @@ void modem_get_call_list(struct ipc_modem_data *data)
void modem_exec_power_normal(struct ipc_modem_data *data)
{
- uint16_t exec_data = 0x0202;
+ uint16_t exec_data = IPC_PWR_PHONE_STATE_REQUEST_NORMAL;
ipc_client_send(data->client,
seq_get(data), IPC_PWR_PHONE_STATE, IPC_TYPE_EXEC,