]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dmaengine: dw: convert to __ffs()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 28 Sep 2015 15:57:04 +0000 (18:57 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 30 Sep 2015 08:13:09 +0000 (13:43 +0530)
commit39416677b95bf1ab8bbfa229ec7e511c96ad5d0c
treeaffa045afd429e807ea61778fb1e1aa05bd5f991
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
dmaengine: dw: convert to __ffs()

We replace __fls() by __ffs() since we have to find a *minimum* data width that
satisfies both source and destination.

While here, rename dwc_fast_fls() to dwc_fast_ffs() which it really is.

Fixes: 4c2d56c574db (dw_dmac: introduce dwc_fast_fls())
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c