diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-06-21 13:48:45 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-08-27 18:12:56 +0200 |
commit | 6706382a59f37ace006018d0fa421906f99e57b9 (patch) | |
tree | d0933636004a107a436ab99f28a1b18cb74bd5d7 /samsung-ril.c | |
parent | d35e040065c0c33525e946c8b9d1f759be90e32d (diff) | |
download | hardware_replicant_libsamsung-ril-6706382a59f37ace006018d0fa421906f99e57b9.tar.gz hardware_replicant_libsamsung-ril-6706382a59f37ace006018d0fa421906f99e57b9.tar.bz2 hardware_replicant_libsamsung-ril-6706382a59f37ace006018d0fa421906f99e57b9.zip |
ril_radio_state_check: rename it to ril_has_reached_state to improve clarity
The former name of the function doesn't convey what it's supposed to do.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ril.c')
-rw-r--r-- | samsung-ril.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/samsung-ril.c b/samsung-ril.c index 41f9ff0..64575b3 100644 --- a/samsung-ril.c +++ b/samsung-ril.c @@ -915,7 +915,7 @@ void *ril_request_loop(__attribute__((unused)) void *data) RIL_LOCK(); - rc = ril_radio_state_check(RADIO_STATE_OFF); + rc = ril_has_reached_state(RADIO_STATE_OFF); if (rc < 0) { RIL_UNLOCK(); continue; @@ -1196,7 +1196,11 @@ int ril_radio_state_update(RIL_RadioState radio_state) return 0; } -int ril_radio_state_check(RIL_RadioState radio_state) +/* + * Returns 0 if the RIL has reached the given radio_state + * Returns -1 otherwise + */ +int ril_has_reached_state(RIL_RadioState radio_state) { RIL_RadioState radio_states[] = { RADIO_STATE_UNAVAILABLE, |