Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 621de2c6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Add wrapper function of exporting CE id"

parents 4252a914 0d70a0bd
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -281,6 +281,19 @@ int icnss_wlan_disable(enum icnss_driver_mode mode)
}
EXPORT_SYMBOL(icnss_wlan_disable);

int icnss_get_ce_id(int irq)
{
	int i;

	for (i = 0; i < ICNSS_MAX_IRQ_REGISTRATIONS; i++) {
		if (penv->ce_irqs[i] == irq)
			return i;
	}
	pr_err("icnss: No matching CE id for irq %d\n", irq);
	return -EINVAL;
}
EXPORT_SYMBOL(icnss_get_ce_id);

static int icnss_probe(struct platform_device *pdev)
{
	int ret = 0;
+1 −0
Original line number Diff line number Diff line
@@ -78,5 +78,6 @@ extern int icnss_ce_free_irq(unsigned int ce_id, void *ctx);
extern int icnss_ce_request_irq(unsigned int ce_id,
	irqreturn_t (*handler)(int, void *),
	unsigned long flags, const char *name, void *ctx);
extern int icnss_get_ce_id(int irq);

#endif /* _ICNSS_WLAN_H_ */