/* retrieve application data structure for an application ID  */
static struct gigaset_capi_appl* get_appl(struct gigaset_capi_ctr *iif, u16 appl)
/* retrieve application data structure for an application ID  */
static struct gigaset_capi_appl* get_appl(struct gigaset_capi_ctr *iif, u16 appl)
{
	struct gigaset_capi_appl *ap;
	list_for_each_entry(ap, &iif->appls, ctrlist)
		if (ap->id == appl)
			return ap;
	return NULL;
}