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

Commit 1141b7e9 authored by Fengguang Wu's avatar Fengguang Wu Committed by Vinod Koul
Browse files

dmaengine: nbpf_error_get_channel() can be static



CC: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
CC: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 6fc8ae78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ static u32 nbpf_error_get(struct nbpf_device *nbpf)
	return nbpf_read(nbpf, NBPF_DSTAT_ER);
}

struct nbpf_channel *nbpf_error_get_channel(struct nbpf_device *nbpf, u32 error)
static struct nbpf_channel *nbpf_error_get_channel(struct nbpf_device *nbpf, u32 error)
{
	return nbpf->chan + __ffs(error);
}