/* Finds modem context which owns the iface device.  */
struct modem_context* modem_context_from_iface_dev(const struct device *dev)
/* Finds modem context which owns the iface device.  */
struct modem_context* modem_context_from_iface_dev(const struct device *dev)
{
	int i;
	for (i = 0; i < ARRAY_SIZE(contexts); i++) {
		if (contexts[i] && contexts[i]->iface.dev == dev) {
			return contexts[i];
		}
	}
	return NULL;
}