diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-09-17 10:15:34 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-17 10:15:34 -0500 |
commit | 12e77a3c70dcd0ef67a9c989c1279ac308cbba70 (patch) | |
tree | 44c5595842f17d780458b2f4740db038455d752d /plugins/calypso.c | |
parent | 0698fc2788303385920ee3c4fb8c5b636697c6cb (diff) | |
download | ofono-12e77a3c70dcd0ef67a9c989c1279ac308cbba70.tar.bz2 |
Convert all the modem drivers to the new API
Diffstat (limited to 'plugins/calypso.c')
-rw-r--r-- | plugins/calypso.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/calypso.c b/plugins/calypso.c index 9dd4e1ec..095414fa 100644 --- a/plugins/calypso.c +++ b/plugins/calypso.c @@ -348,7 +348,18 @@ static int calypso_disable(struct ofono_modem *modem) return -EINVAL; } -static void calypso_populate(struct ofono_modem *modem) +static void calypso_pre_sim(struct ofono_modem *modem) +{ + struct calypso_data *data = ofono_modem_get_data(modem); + + DBG(""); + + ofono_devinfo_create(modem, 0, "atmodem", data->chat); + ofono_sim_create(modem, 0, "atmodem", data->chat); + ofono_voicecall_create(modem, 0, "calypsomodem", data->chat); +} + +static void calypso_post_sim(struct ofono_modem *modem) { struct calypso_data *data = ofono_modem_get_data(modem); struct ofono_message_waiting *mw; @@ -377,7 +388,8 @@ static struct ofono_modem_driver calypso_driver = { .remove = calypso_remove, .enable = calypso_enable, .disable = calypso_disable, - .populate = calypso_populate, + .pre_sim = calypso_pre_sim, + .post_sim = calypso_post_sim, }; static int calypso_init(void) |