mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 08:04:22 +08:00
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: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
6fc8ae787c
commit
1141b7e95a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user