mirror of git://git.sysmocom.de/ofono
ifx: Fix compilation issue
This commit is contained in:
parent
3805cd91c7
commit
31efecfe72
|
@ -139,10 +139,8 @@ static void ifx_remove(struct ofono_modem *modem)
|
||||||
g_free(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ifx_set_sim_state(struct ofono_modem *modem, int state)
|
static void ifx_set_sim_state(struct ifx_data *data, int state)
|
||||||
{
|
{
|
||||||
struct ifx_data *data = ofono_modem_get_data(modem);
|
|
||||||
|
|
||||||
DBG("state %d", state);
|
DBG("state %d", state);
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
@ -191,7 +189,7 @@ static void xsim_notify(GAtResult *result, gpointer user_data)
|
||||||
if (!g_at_result_iter_next_number(&iter, &state))
|
if (!g_at_result_iter_next_number(&iter, &state))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ifx_set_sim_state(modem, state);
|
ifx_set_sim_state(data, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xsimstate_query(gboolean ok, GAtResult *result, gpointer user_data)
|
static void xsimstate_query(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
|
@ -218,7 +216,7 @@ static void xsimstate_query(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
if (!g_at_result_iter_next_number(&iter, &state))
|
if (!g_at_result_iter_next_number(&iter, &state))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ifx_set_sim_state(modem, state);
|
ifx_set_sim_state(data, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void shutdown_device(struct ifx_data *data)
|
static void shutdown_device(struct ifx_data *data)
|
||||||
|
|
Loading…
Reference in New Issue