From b31a3c2390e7d18833396e5e8a4d61bc32c7aaec Mon Sep 17 00:00:00 2001 From: Alex J Lennon Date: Tue, 12 May 2015 18:22:59 +0100 Subject: tc65: Replace tc65 plugin with cinterion plugin On the basis that tc6x and other Cinterion devices will likely have similar firmware requirements, provide a generic Cinterion plugin which is functionally identical to the replaced tc65 plugin. The udev implementation retains support for "tc65" name for backwards compatibility, and adds support for the new "cinterion" name. --- plugins/udev.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/udev.c') diff --git a/plugins/udev.c b/plugins/udev.c index a78cd41e..63302285 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -192,7 +192,7 @@ static void add_wavecom(struct ofono_modem *modem, ofono_modem_register(modem); } -static void add_tc65(struct ofono_modem *modem, +static void add_cinterion(struct ofono_modem *modem, struct udev_device *udev_device) { const char *devnode; @@ -243,6 +243,9 @@ static void add_modem(struct udev_device *udev_device) if (devpath == NULL) return; + if(g_strcmp0(driver, "tc65") == 0) + driver = "cinterion"; + modem = ofono_modem_create(NULL, driver); if (modem == NULL) return; @@ -305,8 +308,8 @@ done: add_isi(modem, udev_device); else if (g_strcmp0(driver, "calypso") == 0) add_calypso(modem, udev_device); - else if (g_strcmp0(driver, "tc65") == 0) - add_tc65(modem, udev_device); + else if (g_strcmp0(driver, "cinterion") == 0) + add_cinterion(modem, udev_device); else if (g_strcmp0(driver, "nokiacdma") == 0) add_nokiacdma(modem, udev_device); else if (g_strcmp0(driver, "sim900") == 0) -- cgit v1.2.3